Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Garage Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Household Away Mode Close Garage | |
| ########################################################## | |
| - alias: Garage - Household Away Mode Close Garage | |
| id: 'garage_household_away_mode_close_garage' | |
| trigger: | |
| - platform: state | |
| entity_id: group.household | |
| from: 'home' | |
| to: 'not_home' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_home_away | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '5' | |
| - delay: '00:00:05' | |
| - service: cover.close_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## USER1 Home from Driving Open Garage Door | |
| ########################################################## | |
| - alias: Garage - USER1 Home from Driving Open Garage Door | |
| id: 'garage_USER1_home_from_driving_open_garage_door' | |
| trigger: | |
| - platform: state | |
| entity_id: person.USER1 | |
| from: 'not_home' | |
| to: 'home' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_home_away | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.USER1_away | |
| state: 'on' | |
| - condition: state | |
| entity_id: input_boolean.USER1_away_driving | |
| state: 'on' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'closed' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: cover.open_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## After USER1 Home Close Garage Door | |
| ######################################################## | |
| - alias: Garage - USER1 Home Close Garage | |
| id: 'garage_USER1_home_close_garage' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.USER1_away | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '5' | |
| - delay: '00:00:05' | |
| - service: homeassistant.turn_on | |
| entity_id: input_boolean.garage_door_motor | |
| - service: cover.close_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## USER2 Home from Driving Open Garage | |
| ########################################################## | |
| - alias: Garage - USER2 Home from Driving Open Garage | |
| id: 'garage_USER2_home_from_driving_open_garage' | |
| trigger: | |
| - platform: state | |
| entity_id: person.USER2 | |
| # from: 'not_home' | |
| to: 'home' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.disable_home_away | |
| state: 'off' | |
| - condition: state | |
| entity_id: input_boolean.USER2_away | |
| state: 'on' | |
| - condition: state | |
| entity_id: input_boolean.USER2_away_driving | |
| state: 'on' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'closed' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: cover.open_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## After USER2 Home Close Garage Door | |
| ######################################################## | |
| - alias: Garage - USER2 Home Close Garage | |
| id: 'garage_USER2_home_close_garage' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.USER2_away | |
| from: 'on' | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '5' | |
| - delay: '00:00:05' | |
| - service: homeassistant.turn_on | |
| entity_id: input_boolean.garage_door_motor | |
| - service: cover.close_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## Close Garage Door after 30 Mins | |
| ########################################################## | |
| - alias: Garage - Close After 30 Mins | |
| id: 'garage_close_after_30_mins' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'open' | |
| for: | |
| hours: 0 | |
| minutes: 30 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '5' | |
| - delay: '00:00:05' | |
| - service: cover.close_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## Garage Door Open On Demand (Echo Integration) | |
| ########################################################## | |
| - alias: Garage - Open On Demand | |
| id: 'garage_open_on_demand' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.garage_door | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'closed' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: cover.open_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## Garage Door Close On Demand (Echo Integration) | |
| ########################################################## | |
| - alias: Garage - Close On Demand | |
| id: 'garage_close_on_demand' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.garage_door | |
| to: 'off' | |
| condition: | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '5' | |
| - delay: '00:00:05' | |
| - service: cover.close_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## Turn Off Garage Door Boolean when Closed | |
| ########################################################## | |
| - alias: Garage - Turn Off Garage Door Boolean when Closed | |
| id: 'garage_turn_off_garage_door_boolean_when_closed' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'open' | |
| to: 'closed' | |
| condition: | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'closed' | |
| action: | |
| - service: homeassistant.turn_off | |
| entity_id: input_boolean.garage_door | |
| ########################################################## | |
| ## Turn On Garage Door Boolean when Open | |
| ########################################################## | |
| - alias: Garage - Turn On Garage Door Boolean when Open | |
| id: 'garage_turn_on_garage_door_boolean_when_open' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'closed' | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| action: | |
| - service: homeassistant.turn_on | |
| entity_id: input_boolean.garage_door | |
| ########################################################## | |
| ## Open Garage Door when USER2 Leaves for Work | |
| ########################################################## | |
| - alias: Garage - USER2 Leaving for Work Open Garage | |
| id: 'garage_USER2_leaving_for_work_open_garage' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.back_door_opened | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: time | |
| after: '06:00:00' | |
| before: '07:30:00' | |
| - condition: state | |
| entity_id: input_boolean.disable_auto_garage | |
| state: 'off' | |
| - condition: state | |
| entity_id: person.USER2 | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.USER2_away | |
| state: 'off' | |
| - condition: time | |
| weekday: | |
| - mon | |
| - tue | |
| - wed | |
| - thu | |
| - fri | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'closed' | |
| - condition: state | |
| entity_id: input_boolean.garage_door_motor | |
| state: 'off' | |
| action: | |
| - service: cover.open_cover | |
| entity_id: cover.garage_door | |
| ########################################################## | |
| ## Flash Light When Garage Door Closes | |
| ########################################################## | |
| - alias: Garage - Flash Light When Garage Door Closes | |
| id: 'garage_flash_light_when_garage_door_closes' | |
| trigger: | |
| - platform: event | |
| event_type: call_service | |
| event_data: | |
| domain: cover | |
| service: close_cover | |
| condition: | |
| - condition: state | |
| entity_id: cover.garage_door | |
| state: 'open' | |
| - condition: state | |
| entity_id: light.garage_interior | |
| state: 'on' | |
| action: | |
| - service: lifx.effect_pulse | |
| data: | |
| entity_id: light.garage_interior | |
| cycles: '11' | |
| ########################################################## | |
| ## Garage Door Motor On | |
| ########################################################## | |
| - alias: Garage - Door Motor On | |
| id: 'garage_door_motor_on' | |
| trigger: | |
| - platform: event | |
| event_type: call_service | |
| event_data: | |
| domain: cover | |
| service: close_cover | |
| service_data: | |
| entity_id: cover.garage_door | |
| - platform: event | |
| event_type: call_service | |
| event_data: | |
| domain: cover | |
| service: open_cover | |
| service_data: | |
| entity_id: cover.garage_door | |
| action: | |
| - service: homeassistant.turn_on | |
| entity_id: input_boolean.garage_door_motor | |
| ########################################################## | |
| ## Garage Door Motor Off | |
| ########################################################## | |
| - alias: Garage - Door Motor Off | |
| id: 'garage_door_motor_off' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.garage_door_motor | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 15 | |
| action: | |
| - service: homeassistant.turn_off | |
| entity_id: input_boolean.garage_door_motor | |
| ################################################################# | |
| ## Notifications | |
| ################################################################# | |
| ################################################################# | |
| ## Garage Open iOS Notification | |
| ################################################################# | |
| - alias: Garage - Open iOS Notification | |
| id: 'garage_open_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'closed' | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door Open | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| ################################################################# | |
| ## Garage Closed iOS Notification | |
| ################################################################# | |
| - alias: Garage - Closed iOS Notification | |
| id: 'garage_closed_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| from: 'open' | |
| to: 'closed' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door Closed | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| ################################################################# | |
| ## Garage Door Still Open iOS Notification | |
| ################################################################# | |
| - alias: Garage - Door Still Open iOS Notification | |
| id: 'garage_door_still_open_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'open' | |
| for: | |
| hours: 0 | |
| minutes: 35 | |
| seconds: 0 | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'closing' | |
| for: | |
| hours: 0 | |
| minutes: 10 | |
| seconds: 0 | |
| - platform: state | |
| entity_id: cover.garage_door | |
| to: 'opening' | |
| for: | |
| hours: 0 | |
| minutes: 10 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_notifications | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door is Still Open! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Garage Door is Still Open! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-garage-camera' | |
| push: | |
| category: camera | |
| entity_id: camera.garage | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Garage Door Still Open Close It? | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-open' | |
| push: | |
| badge: 0 | |
| category: "garage" | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Garage Door Still Open Close It? | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'garage-open' | |
| push: | |
| badge: 0 | |
| category: "garage" |