Advertisement
Guest User

Main automation

a guest
Aug 25th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. alias: Encender LUZ SALON movimiento
  2. description: >
  3. Al detectar movimiento entre las 8:45 p.m. y la 1:00 a.m., enciende las luces
  4. del salón, solo una vez al día.
  5. trigger:
  6. - type: motion
  7. platform: device
  8. device_id: 3bbac7334aa617dd6457474922a10a00
  9. entity_id: 42d70ee7b5e8e903e88d10cf1fedd241
  10. domain: binary_sensor
  11. for:
  12. hours: 0
  13. minutes: 0
  14. seconds: 0
  15. condition:
  16. - condition: and
  17. conditions:
  18. - condition: time
  19. after: "20:28:00"
  20. before: "23:59:59"
  21. - condition: state
  22. entity_id: input_boolean.time_interval_toggle_helper
  23. state: "on"
  24. action:
  25. - service: light.turn_on
  26. data: {}
  27. target:
  28. device_id:
  29. - 5912847c2140a8f0c2173e32b2d18381
  30. - c32c52537c47a619773d13fcbe3b5d2b
  31. - service: input_boolean.turn_off
  32. target:
  33. entity_id: input_boolean.time_interval_toggle_helper
  34. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement