Advertisement
abeksis

Untitled

May 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ############################################################
  2. #
  3. # חיישן דלת
  4. #
  5. ############################################################
  6. - alias: If the dor is open turn off The lighting
  7. trigger:
  8. platform: state
  9. entity_id: binary_sensor.switch_158d0001f36255 ## חיישן דלת ##
  10. from: 'off'
  11. to: 'on'
  12. action:
  13. - service: switch.toggle
  14. entity_id: switch.shower
  15. data:
  16. operation_mode: 'Off'
  17. - alias: If the dor is closed for 5 minutes turn on the The lighting
  18. trigger:
  19. platform: state
  20. entity_id: binary_sensor.switch_158d0001f36255 ## חיישן דלת ##
  21. from: 'on'
  22. to: 'off'
  23. for:
  24. minutes: 5
  25. action:
  26. - service: switch.toggle
  27. entity_id: switch.shower
  28. data:
  29. operation_mode: 'Smart schedule'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement