Advertisement
Guest User

Blinking Icons

a guest
Jun 12th, 2022
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. - type: custom:mushroom-template-card
  2. primary: Living Room
  3. icon: mdi:sofa
  4. icon_color: red
  5. layout: horizontal
  6. entity: switch.radiator_light_strip
  7. secondary: >
  8. {{state_attr('climate.living_room', 'current_temperature')
  9. }} °C
  10. tap_action:
  11. action: navigate
  12. navigation_path: living-room
  13. card_mod: null
  14. style: |
  15. ha-card {
  16. box-shadow: 0px 0px;
  17. }
  18. - type: custom:vertical-stack-in-card
  19. horizontal: true
  20. cards:
  21. - type: custom:mushroom-template-card
  22. entity: switch.radiator_light_strip
  23. layout: vertical
  24. icon: |-
  25.  
  26. {% if is_state('switch.radiator_light_strip', 'on') %}
  27.  
  28. mdi:lightbulb-group
  29.  
  30. {% else %}
  31.  
  32. mdi:lightbulb-group-off
  33.  
  34. {% endif %}
  35. icon_color: |-
  36.  
  37. {% if is_state('switch.radiator_light_strip', 'on') %}
  38.  
  39. yellow
  40.  
  41. {%else%}
  42. transparent
  43.  
  44. {% endif %}
  45. card_mod: null
  46. style: |
  47. ha-card {
  48. box-shadow: 0px 0px;
  49. }
  50. - type: custom:mushroom-template-card
  51. entity: null
  52. layout: vertical
  53. icon: |-
  54.  
  55. {% if is_state('binary_sensor.', 'on')%}
  56.  
  57. mdi:motion-sensor
  58.  
  59. {% else %}
  60.  
  61. mdi:motion-sensor-off
  62.  
  63. {% endif %}
  64. icon_color: |-
  65.  
  66. {% if is_state('binary_sensor.','on')%}
  67.  
  68. red
  69.  
  70. {%else%}
  71. transparent
  72.  
  73. {% endif %}
  74. card_mod: null
  75. style: |
  76. ha-card {
  77. box-shadow: 0px 0px;
  78. }
  79. - type: conditional
  80. conditions:
  81. - entity: media_player.living_room_echo_show
  82. state_not: 'off'
  83. - entity: media_player.living_room_echo_show
  84. state_not: idle
  85. card:
  86. type: custom:mushroom-template-card
  87. layout: vertical
  88. entity: media_player.living_room_echo_show
  89. icon: >
  90.  
  91. {% if is_state('media_player.living_room_echo_show',
  92. 'playing')%}
  93.  
  94. mdi:speaker-wireless
  95.  
  96. {% else %}
  97.  
  98. mdi:speaker
  99.  
  100. {% endif %}
  101. icon_color: >-
  102.  
  103. {% if is_state('media_player.living_room_echo_show',
  104. 'playing') %}
  105.  
  106. purple
  107.  
  108. {% else %}
  109.  
  110. transparent
  111.  
  112. {% endif %}
  113. card_mod: null
  114. style: |
  115. ha-card {
  116. box-shadow: 0px 0px;
  117. }
  118. card_mod: null
  119. style: |
  120. ha-card {
  121. box-shadow: 0px 0px;
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement