Ventilator: tilføj tænd/sluk + sluk-timer knapper for Andreas og Daniel
This commit is contained in:
@@ -21,3 +21,12 @@ andreas_brightness:
|
||||
step: 1
|
||||
unit_of_measurement: "%"
|
||||
initial: 100
|
||||
|
||||
andreas_ventilator_timer:
|
||||
name: Andreas ventilator sluk-timer
|
||||
min: 5
|
||||
max: 120
|
||||
step: 5
|
||||
unit_of_measurement: min
|
||||
initial: 30
|
||||
icon: mdi:fan-off
|
||||
|
||||
@@ -21,3 +21,12 @@ daniel_brightness:
|
||||
step: 1
|
||||
unit_of_measurement: "%"
|
||||
initial: 100
|
||||
|
||||
daniel_ventilator_timer:
|
||||
name: Daniel ventilator sluk-timer
|
||||
min: 5
|
||||
max: 120
|
||||
step: 5
|
||||
unit_of_measurement: min
|
||||
initial: 30
|
||||
icon: mdi:fan-off
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
andreas_ventilator_sluk_timer:
|
||||
alias: Andreas ventilator sluk efter timer
|
||||
icon: mdi:fan-off
|
||||
mode: restart
|
||||
sequence:
|
||||
- delay:
|
||||
minutes: "{{ states('input_number.andreas_ventilator_timer') | int(30) }}"
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.indkorsel_plug
|
||||
|
||||
daniel_ventilator_sluk_timer:
|
||||
alias: Daniel ventilator sluk efter timer
|
||||
icon: mdi:fan-off
|
||||
mode: restart
|
||||
sequence:
|
||||
- delay:
|
||||
minutes: "{{ states('input_number.daniel_ventilator_timer') | int(30) }}"
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.stik_daniel
|
||||
Reference in New Issue
Block a user