Sorry for the noob question
Device: iPhone w\HA app
-I get notification that I have entered the home zone however, the garage door does not open. What am I missing. Should be simple but to a noob I feel hopeless… neighbors must think I am crazy that I keep driving back and forth. I have attached a sample of what I placed in the automation.yaml file. Any help will be greatly appreciated, this is my first attempt at automation.
I am it has been a learning curve, but I starting to get the hang of it.
now I have to figure out how to create a smart automation instead of having two automation (one to close, and one to open) any help will be greatly appreciated on how to combined these two automations.
- id: '1565387314898'
alias: Open Sesame
trigger:
- entity_id: device_tracker.kevins_iphone
event: enter
platform: zone
zone: zone.home
condition:
- condition: state
entity_id: cover.garage_door
state: closed
action:
- data:
entity_id: cover.garage_door
service: cover.open_cover
- data:
message: Open
title: 'Garage door:'
service: notify.notify
- id: '1565395102670'
alias: Close Sesame
trigger:
- entity_id: device_tracker.kevins_iphone
event: leave
platform: zone
zone: zone.home
condition:
- condition: state
entity_id: cover.garage_door
state: open
action:
- data:
entity_id: cover.garage_door
service: cover.close_cover
- data:
message: Closed
title: 'Garage door:'
service: notify.notify
In this particular case, it would only be because you want to do it as an intellectual challenge and not because the resulting single automation would be more compact/elegant/efficient etc. The trigger’s events (enter/leave) aren’t reusable in the action (where the services are open/close) so it will require ‘if this else that’ in the template which streamlines nothing. Then there’s the issue of handling the conditions which look for opposite cover states (depending on the event).
Thanks for the sound advice.
I will leave it to be for now, I will focus now on how to set my eco bee thermostat to away or off once the garage is closed via automation tomorrow.