Ventilator: tilføj tænd/sluk + sluk-timer knapper for Andreas og Daniel
This commit is contained in:
@@ -255,6 +255,50 @@ sections:
|
||||
- word-break: break-word
|
||||
- line-height: 1.15
|
||||
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Ventilator
|
||||
|
||||
- type: custom:button-card
|
||||
entity: light.indkorsel_plug
|
||||
name: Ventilator
|
||||
icon: mdi:fan
|
||||
show_state: true
|
||||
tap_action:
|
||||
action: toggle
|
||||
hold_action:
|
||||
action: more-info
|
||||
styles:
|
||||
card:
|
||||
- padding: 8px 6px
|
||||
- height: 72px
|
||||
icon:
|
||||
- width: 26px
|
||||
name:
|
||||
- font-size: 12px
|
||||
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_number.andreas_ventilator_timer
|
||||
name: Sluk-timer (min)
|
||||
|
||||
- type: custom:button-card
|
||||
icon: mdi:fan-off
|
||||
name: |
|
||||
[[[ return 'Sluk om ' + Math.round(states['input_number.andreas_ventilator_timer'].state) + ' min'; ]]]
|
||||
tap_action:
|
||||
action: perform-action
|
||||
perform_action: script.andreas_ventilator_sluk_timer
|
||||
styles:
|
||||
card:
|
||||
- padding: 8px 6px
|
||||
- height: 56px
|
||||
icon:
|
||||
- width: 22px
|
||||
name:
|
||||
- font-size: 12px
|
||||
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
|
||||
Reference in New Issue
Block a user