PlatoNL

F1 Lovelace Card

Jul 18th, 2019
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 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. name: 'Qualifying'
  29. show_name: true
  30. show_label: false
  31. show_state: true
  32. action: more_info
  33. color_type: icon
  34. layout: icon_state_name2nd
  35. entity: sensor.f1_quali_time
  36. label_template: >
  37. return states['sensor.f1_quali_day'].state
  38. style:
  39. - color: var(--icon-off-color)
  40. state:
  41. - value: 'on'
  42. color: var(--icon-color-blue)
  43. - value: 'off'
  44. color: var(--icon-off-color)
  45. - type: "custom:button-card"
  46. icon: mdi:flag-checkered
  47. name: 'Race'
  48. show_name: true
  49. show_label: false
  50. show_state: true
  51. action: more_info
  52. color_type: icon
  53. layout: icon_state_name2nd
  54. entity: sensor.f1_race_time
  55. label_template: >
  56. return states['sensor.f1_race_day'].state
  57. style:
  58. - color: var(--icon-off-color)
  59. state:
  60. - value: 'on'
  61. color: var(--icon-color-blue)
  62. - value: 'off'
  63. color: var(--icon-off-color)
  64. - type: horizontal-stack
  65. cards:
  66. - type: picture
  67. image: /local/divider.png
Advertisement
Add Comment
Please, Sign In to add comment