Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################
- #
- # חיישן דלת
- #
- ############################################################
- - alias: If the dor is open turn off The lighting
- trigger:
- platform: state
- entity_id: binary_sensor.switch_158d0001f36255 ## חיישן דלת ##
- from: 'off'
- to: 'on'
- action:
- - service: switch.toggle
- entity_id: switch.shower
- data:
- operation_mode: 'Off'
- - alias: If the dor is closed for 5 minutes turn on the The lighting
- trigger:
- platform: state
- entity_id: binary_sensor.switch_158d0001f36255 ## חיישן דלת ##
- from: 'on'
- to: 'off'
- for:
- minutes: 5
- action:
- - service: switch.toggle
- entity_id: switch.shower
- data:
- operation_mode: 'Smart schedule'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement