Ventilator: farv 'Sluk om X min'-knap gul mens timer kører
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user