My wife and I dont park in our garage, but we do use it when be bring in groceries, or have other larger items to bring into the house. I’ve seen people have their garage door open when getting home, but of course this it not what we needed. I wanted an on demand “open when I get home”
I have three automations and a few boolean switches to accomplish this. I also wanted the door to auto close after there was no motion OR even if there was never motion (ie, I accidently triggered the door)
Here are my automations
Automations.yaml
##########################################
## Garage Door Automations ##
##########################################
- alias: 'Garage Door For person2 when she gets home'
trigger:
- platform: state
entity_id: device_tracker.person1_iphone
from: not_home
to: home
condition:
- condition: state
entity_id: input_boolean.open_garage_for_person2
state: 'on'
action:
- service: cover.open_cover
entity_id: cover.garage_door_opener
- service: homeassistant.turn_off
entity_id: input_boolean.open_garage_for_person2
- service: input_boolean.turn_on
entity_id: input_boolean.garage_opened_for_arrival
- alias: 'Garage Door For person1 when he gets home'
trigger:
- platform: state
entity_id: device_tracker.person2_iphone
from: not_home
to: home
condition:
- condition: state
entity_id: input_boolean.open_garage_for_person1
state: 'on'
action:
- service: cover.open_cover
entity_id: cover.garage_door_opener
- service: homeassistant.turn_off
entity_id: input_boolean.open_garage_for_person1
- service: input_boolean.turn_on
entity_id: input_boolean.garage_opened_for_arrival
- alias: 'Garage Door Close with No Motion for Three Minutes'
trigger:
- platform: state
entity_id: input_boolean.open_garage_for_person1
from: 'on'
to: 'off'
for:
minutes: 3
- platform: state
entity_id: input_boolean.open_garage_for_person2
from: 'on'
to: 'off'
for:
minutes: 3
- platform: state
# Garage Motion Sensor
entity_id: binary_sensor.centralite_3305s_02f13445_1_1280
from: 'on'
to: 'off'
for:
minutes: 3
condition:
- condition: state
# Garage Motion Sensor
entity_id: input_boolean.garage_opened_for_arrival
state: 'on'
action:
- service: cover.close_cover
entity_id: cover.garage_door_opener
- service: homeassistant.turn_off
entity_id: input_boolean.garage_opened_for_arrival
input_booleans.yaml
garage_opened_for_arrival:
name: Garage opened via Automation
icon: mdi:garage
open_garage_for_person1:
name: Open Garage for person1
icon: mdi:garage
open_garage_for_person2:
name: Open Garage for person2
icon: mdi:garage
I set up an IFTTT trigger as well, so that I can turn on the switches in several ways, that dont require me opening the app and turning on the switch. I have one that uses the IFTTT button widget, so I can just swipe left on the iphone and hit the button. I dont even have to unlock the phone. Also, I have the SMS turns on a switch action set up in IFTTT. I set up an address entry in my phone book with the IFTTT sms number, and I can then text from my car to turn it on. If you have bluetooth in your care you can say something like 'Text the house", what would you like to say to “the House”, ME: “open the door when I get home”, you can actually say anything, its just the text that IFTTT users to turn on the switch