Advertisement
Guest User

Blinking Icons 2

a guest
Jun 12th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. - type: custom:vertical-stack-in-card
  2. mode: vertical
  3. cards:
  4. - type: custom:mushroom-template-card
  5. primary: Living Room
  6. icon: mdi:sofa
  7. icon_color: red
  8. layout: horizontal
  9. entity: switch.radiator_light_strip
  10. secondary: >
  11. {{state_attr('climate.living_room', 'current_temperature')
  12. }} °C
  13. tap_action:
  14. action: navigate
  15. navigation_path: living-room
  16. card_mod: null
  17. style: |
  18. ha-card {
  19. box-shadow: 0px 0px;
  20. }
  21. - type: custom:vertical-stack-in-card
  22. horizontal: true
  23. cards:
  24. - type: custom:mushroom-template-card
  25. entity: switch.radiator_light_strip
  26. layout: vertical
  27. icon: |-
  28.  
  29. {% if is_state('switch.radiator_light_strip', 'on') %}
  30.  
  31. mdi:lightbulb-group
  32.  
  33. {% else %}
  34.  
  35. mdi:lightbulb-group-off
  36.  
  37. {% endif %}
  38. icon_color: |-
  39.  
  40. {% if is_state('switch.radiator_light_strip', 'on') %}
  41.  
  42. yellow
  43.  
  44. {%else%}
  45. transparent
  46.  
  47. {% endif %}
  48. card_mod: null
  49. style: |
  50. ha-card {
  51. box-shadow: 0px 0px;
  52. }
  53. - type: custom:mushroom-template-card
  54. entity: null
  55. layout: vertical
  56. icon: |-
  57.  
  58. {% if is_state('binary_sensor.', 'on')%}
  59.  
  60. mdi:motion-sensor
  61.  
  62. {% else %}
  63.  
  64. mdi:motion-sensor-off
  65.  
  66. {% endif %}
  67. icon_color: |-
  68.  
  69. {% if is_state('binary_sensor.','on')%}
  70.  
  71. red
  72.  
  73. {%else%}
  74. transparent
  75.  
  76. {% endif %}
  77. card_mod: null
  78. style: |
  79. ha-card {
  80. box-shadow: 0px 0px;
  81. }
  82. mushroom-shape-icon {
  83. animation: blink 1s linear infinite;
  84. }
  85. @keyframes blink {
  86. 50% {opacity: 0;}
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement