Add permanent staircase light switch
This commit is contained in:
parent
5eeaf11e6c
commit
4e45e263f5
1 changed files with 28 additions and 0 deletions
|
|
@ -76,6 +76,17 @@ output:
|
|||
frequency: 50000
|
||||
min_power: 0
|
||||
max_power: 0.12
|
||||
- platform: template
|
||||
type: binary
|
||||
id: output_staircase_light_permanent
|
||||
write_action:
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return state;'
|
||||
then:
|
||||
- script.execute: script_staircase_permanent
|
||||
else:
|
||||
- script.stop: script_staircase_permanent
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
|
|
@ -94,3 +105,20 @@ button:
|
|||
- output.turn_on: output_staircase_light_ssr
|
||||
- delay: 200ms
|
||||
- output.turn_off: output_staircase_light_ssr
|
||||
|
||||
light:
|
||||
- platform: binary
|
||||
id: staircase_permanent
|
||||
name: Treppenlicht permanent
|
||||
output: output_staircase_light_permanent
|
||||
|
||||
script:
|
||||
- id: script_staircase_permanent
|
||||
mode: restart
|
||||
then:
|
||||
- while:
|
||||
condition:
|
||||
lambda: 'return true;'
|
||||
then:
|
||||
- button.press: btn_staircase_light
|
||||
- delay: 90s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue