Ventilator: tilføj tænd/sluk + sluk-timer knapper for Andreas og Daniel

This commit is contained in:
2026-06-20 19:24:19 +02:00
parent 63d61eb111
commit dc821a5769
8 changed files with 1042 additions and 2 deletions
+44
View File
@@ -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: switch.stik_daniel
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.daniel_ventilator_timer
name: Sluk-timer (min)
- type: custom:button-card
icon: mdi:fan-off
name: |
[[[ return 'Sluk om ' + Math.round(states['input_number.daniel_ventilator_timer'].state) + ' min'; ]]]
tap_action:
action: perform-action
perform_action: script.daniel_ventilator_sluk_timer
styles:
card:
- padding: 8px 6px
- height: 56px
icon:
- width: 22px
name:
- font-size: 12px
- type: grid
cards:
- type: heading