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
|
- type: custom:button-card
|
||||||
icon: mdi:fan-off
|
icon: mdi:fan-off
|
||||||
|
entity: script.andreas_ventilator_sluk_timer
|
||||||
|
show_state: false
|
||||||
name: |
|
name: |
|
||||||
[[[ return 'Sluk om ' + Math.round(states['input_number.andreas_ventilator_timer'].state) + ' min'; ]]]
|
[[[ return 'Sluk om ' + Math.round(states['input_number.andreas_ventilator_timer'].state) + ' min'; ]]]
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -294,10 +296,16 @@ sections:
|
|||||||
card:
|
card:
|
||||||
- padding: 8px 6px
|
- padding: 8px 6px
|
||||||
- height: 56px
|
- height: 56px
|
||||||
|
- background-color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#f9a825' : ''; ]]]
|
||||||
icon:
|
icon:
|
||||||
- width: 22px
|
- width: 22px
|
||||||
|
- color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
|
||||||
name:
|
name:
|
||||||
- font-size: 12px
|
- font-size: 12px
|
||||||
|
- color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
|
||||||
|
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -285,6 +285,8 @@ sections:
|
|||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
icon: mdi:fan-off
|
icon: mdi:fan-off
|
||||||
|
entity: script.daniel_ventilator_sluk_timer
|
||||||
|
show_state: false
|
||||||
name: |
|
name: |
|
||||||
[[[ return 'Sluk om ' + Math.round(states['input_number.daniel_ventilator_timer'].state) + ' min'; ]]]
|
[[[ return 'Sluk om ' + Math.round(states['input_number.daniel_ventilator_timer'].state) + ' min'; ]]]
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -294,10 +296,16 @@ sections:
|
|||||||
card:
|
card:
|
||||||
- padding: 8px 6px
|
- padding: 8px 6px
|
||||||
- height: 56px
|
- height: 56px
|
||||||
|
- background-color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#f9a825' : ''; ]]]
|
||||||
icon:
|
icon:
|
||||||
- width: 22px
|
- width: 22px
|
||||||
|
- color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
|
||||||
name:
|
name:
|
||||||
- font-size: 12px
|
- font-size: 12px
|
||||||
|
- color: |
|
||||||
|
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
|
||||||
|
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
Reference in New Issue
Block a user