Ventilator: farv 'Sluk om X min'-knap gul mens timer kører

This commit is contained in:
2026-06-20 19:35:48 +02:00
parent 260353b9d0
commit 77a87ed19a
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -285,6 +285,8 @@ sections:
- type: custom:button-card
icon: mdi:fan-off
entity: script.andreas_ventilator_sluk_timer
show_state: false
name: |
[[[ return 'Sluk om ' + Math.round(states['input_number.andreas_ventilator_timer'].state) + ' min'; ]]]
tap_action:
@@ -294,10 +296,16 @@ sections:
card:
- padding: 8px 6px
- height: 56px
- background-color: |
[[[ return entity && entity.state === 'on' ? '#f9a825' : ''; ]]]
icon:
- width: 22px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
name:
- font-size: 12px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
- type: grid
cards:
+8
View File
@@ -285,6 +285,8 @@ sections:
- type: custom:button-card
icon: mdi:fan-off
entity: script.daniel_ventilator_sluk_timer
show_state: false
name: |
[[[ return 'Sluk om ' + Math.round(states['input_number.daniel_ventilator_timer'].state) + ' min'; ]]]
tap_action:
@@ -294,10 +296,16 @@ sections:
card:
- padding: 8px 6px
- height: 56px
- background-color: |
[[[ return entity && entity.state === 'on' ? '#f9a825' : ''; ]]]
icon:
- width: 22px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
name:
- font-size: 12px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
- type: grid
cards: