PlatoNL

F1 Card new

Jul 24th, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.05 KB | None | 0 0
  1. type: custom:vertical-style-card
  2. title: Formula 1
  3. style:
  4.   font_size: 24px
  5.   border: true
  6. cards:
  7. - type: vertical-stack
  8.   cards:
  9.   - type: horizontal-stack
  10.     cards:
  11.      - type: picture
  12.        image: /local/divider.png
  13.   - type: horizontal-stack
  14.     cards:
  15.     - type: "custom:triplevalue-card"
  16.       title_entity: sensor.f1_week_left
  17.       entity: sensor.f1_next_race
  18.       subtitle_entity: sensor.f1_location
  19.       scale: 15px
  20.   - type: horizontal-stack
  21.     cards:
  22.      - type: picture
  23.        image: /local/divider.png
  24.   - type: horizontal-stack
  25.     cards:
  26.       - type: "custom:button-card"
  27.         icon: mdi:timer
  28.         show_name: false
  29.         action: more_info
  30.         color_type: icon
  31.         size: 25%
  32.         entity: sensor.f1_quali_days_left
  33.         style:
  34.         - color: var(--icon-off-color)
  35.         state:
  36.         - value: 'today'
  37.           color: var(--icon-color-blue)
  38.         - value: 'off'
  39.           color: var(--icon-off-color)
  40.       - type: "custom:singlevalue-card"
  41.         entity: sensor.f1_quali_day
  42.         scale: 15px
  43.       - type: "custom:singlevalue-card"
  44.         entity: sensor.f1_quali_time
  45.         scale: 15px
  46.   - type: horizontal-stack
  47.     cards:
  48.      - type: picture
  49.        image: /local/divider.png
  50.   - type: horizontal-stack
  51.     cards:
  52.       - type: "custom:button-card"
  53.         icon: mdi:flag-checkered
  54.         show_name: false
  55.         action: more_info
  56.         color_type: icon
  57.         size: 25%
  58.         entity: sensor.f1_race_time
  59.         label_template: >
  60.          return states['sensor.f1_race_day'].state
  61.         style:
  62.         - color: var(--icon-off-color)
  63.         state:
  64.         - value: 'on'
  65.           color: var(--icon-color-blue)
  66.         - value: 'off'
  67.           color: var(--icon-off-color)
  68.       - type: "custom:singlevalue-card"
  69.         entity: sensor.f1_race_day
  70.         scale: 15px
  71.       - type: "custom:singlevalue-card"
  72.         entity: sensor.f1_race_time
  73.         scale: 15px
  74.   - type: horizontal-stack
  75.     cards:
  76.      - type: picture
  77.        image: /local/divider.png
Advertisement
Add Comment
Please, Sign In to add comment