PoisonWaffle

Garage Door Auto Close

Apr 8th, 2024 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. Garage Door Auto Close
  2. alias: Garage Door Auto Close
  3. description: ""
  4. trigger:
  5. - platform: state
  6. entity_id:
  7. - cover.garage_door
  8. for:
  9. hours: 1
  10. minutes: 0
  11. seconds: 0
  12. to: open
  13. condition:
  14. - condition: state
  15. entity_id: binary_sensor.garage_motion_group
  16. for:
  17. hours: 0
  18. minutes: 30
  19. seconds: 0
  20. state: ""
  21. - condition: state
  22. entity_id: binary_sensor.garage_interior_door_intrusion
  23. state: "off"
  24. for:
  25. hours: 0
  26. minutes: 30
  27. seconds: 0
  28. action:
  29. - if:
  30. - condition: state
  31. entity_id: binary_sensor.garage_door_closed
  32. state: "off"
  33. for:
  34. hours: 0
  35. minutes: 45
  36. seconds: 0
  37. then:
  38. - service: cover.close_cover
  39. data: {}
  40. target:
  41. entity_id: cover.garage_door
  42. - wait_for_trigger:
  43. - platform: state
  44. entity_id:
  45. - cover.garage_door
  46. to: closed
  47. timeout:
  48. hours: 0
  49. minutes: 0
  50. seconds: 12
  51. milliseconds: 0
  52. - if:
  53. - condition: state
  54. entity_id: cover.garage_door
  55. state: closed
  56. then:
  57. - service: notify.mobile_app_[my_phone]
  58. data:
  59. message: Garage door closed automatically after 1 hour
  60. - if:
  61. - condition: state
  62. entity_id: binary_sensor.garage_door_closed
  63. state: "off"
  64. then:
  65. - service: notify.mobile_app_[my_phone]
  66. data:
  67. message: >-
  68. Garage door attempted to close automatically after 1 hour but
  69. failed
  70. mode: single
  71.  
  72.  
Advertisement
Add Comment
Please, Sign In to add comment