Guest User

Front Porch: Motion On/Off

a guest
Feb 3rd, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. alias: "Front Porch: Motion On/Off"
  2. description: ""
  3. triggers:
  4. - entity_id:
  5. - binary_sensor.doorbell_motion
  6. id: Motion
  7. trigger: state
  8. to: "on"
  9. - entity_id:
  10. - binary_sensor.doorbell_motion
  11. to: "off"
  12. for:
  13. hours: 0
  14. minutes: 3
  15. seconds: 0
  16. id: No_Motion
  17. trigger: state
  18. conditions:
  19. - condition: sun
  20. before: sunrise
  21. after: sunset
  22. after_offset: "-00:15:00"
  23. before_offset: "00:15:00"
  24. - condition: state
  25. entity_id: input_boolean.front_porch
  26. state: "off"
  27. actions:
  28. - choose:
  29. - conditions:
  30. - condition: trigger
  31. id:
  32. - Motion
  33. sequence:
  34. - action: light.turn_on
  35. metadata: {}
  36. data: {}
  37. target:
  38. device_id: e59092133e161406bfacd855eecf5977
  39. - conditions:
  40. - condition: trigger
  41. id:
  42. - No_Motion
  43. sequence:
  44. - action: light.turn_off
  45. metadata: {}
  46. data: {}
  47. target:
  48. device_id: e59092133e161406bfacd855eecf5977
  49. mode: restart
  50.  
Advertisement
Add Comment
Please, Sign In to add comment