Implement staircase lighting
This commit is contained in:
parent
e573cde83f
commit
a7f19adb60
1 changed files with 27 additions and 7 deletions
|
|
@ -32,7 +32,7 @@ wifi:
|
|||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: Etagenklingel
|
||||
id: etagenklingel
|
||||
id: floor_bell
|
||||
pin:
|
||||
number: GPIO16
|
||||
mode:
|
||||
|
|
@ -43,7 +43,7 @@ binary_sensor:
|
|||
|
||||
- platform: gpio
|
||||
name: Treppenlicht
|
||||
id: treppenlicht
|
||||
id: staircase_light
|
||||
pin:
|
||||
number: GPIO18
|
||||
mode:
|
||||
|
|
@ -52,19 +52,39 @@ binary_sensor:
|
|||
filters:
|
||||
- invert
|
||||
- delayed_off: 10s
|
||||
on_press:
|
||||
then:
|
||||
- output.turn_on: output_staircase_light_ssr
|
||||
- delay: 200ms
|
||||
- output.turn_off: output_staircase_light_ssr
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO15
|
||||
id: btn_door
|
||||
id: output_door_opener
|
||||
- platform: ledc
|
||||
pin:
|
||||
number: GPIO33
|
||||
inverted: true
|
||||
id: output_staircase_light_ssr
|
||||
frequency: 50000
|
||||
min_power: 0
|
||||
max_power: 0.12
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: "Türöffner"
|
||||
id: tueroeffner
|
||||
id: btn_tueroeffner
|
||||
icon: mdi:lock-open
|
||||
on_press:
|
||||
- logger.log: "Button pressed"
|
||||
- output.turn_on: btn_door
|
||||
- output.turn_on: output_door_opener
|
||||
- delay: 500ms
|
||||
- output.turn_off: btn_door
|
||||
- output.turn_off: output_door_opener
|
||||
- platform: template
|
||||
name: "Treppenlicht"
|
||||
id: btn_staircase_light
|
||||
icon: mdi:stairs
|
||||
on_press:
|
||||
- output.turn_on: output_staircase_light_ssr
|
||||
- delay: 200ms
|
||||
- output.turn_off: output_staircase_light_ssr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue