I’m looking for advice on synchronising Nest Away Mode and Home Assistant’s “is in home zone”.
There are two things attempting to track my home/away state:
- Nest iOS app (and Nest thermostat/smoke alarm motion sensors) - Sets Nest Away Mode state
- Home Assistant iOS app - Fires zone event when I arrive home
I have their state displayed in a card like so:
I’m looking to synchronise these. I already switch off Nest Away Mode in my automation when the Home Assistant iOS app fires the zone event, in case it detects I’m home before Nest does.
- id: arriving_home
alias: 'Arriving home'
trigger:
platform: zone
event: enter
zone: zone.home
entity_id: device_tracker.alecs_iphone
action:
- service: nest.set_mode
data:
home_mode: home
// lights etc.
But often Nest detects my presence (Nest Away Mode is switched off) before the Home Assistant iOS app does. So I think I need to essentially do the reverse of the above automation - fire a “Alec’s iPhone is home” event, if Nest Away Mode switches off when the Home Assistant iOS app thinks I’m not at home.
Any advice on achieving this automation, or perhaps I’m going about this in the wrong way?