Google Maps Location Sharing question on automation

I’ve got Google Maps Location Sharing working properly. Besides home, I’ve also created a work entry in zones. Work is defined as My Office. I’m trying to get an automation to switch the thermostat from away to home after I leave my office. My trigger is:

  trigger:
    platform: state
    entity_id: device_tracker.google_maps_xxxxxxxxxxxxx
    from: 'My Office'
    to: 'Away'

I’ve created a test automations that texts me when I arrive at work, so I know I have to use ‘My Office’, For checking away status, should it be ‘away’ or ‘Away’?

Thanks!

You should use ‘not_home’ Check for the exact value in the Dev State <> (http://:8123/dev-state). “Away” is the friendly name of that state so it looks presentable in the frontend. ‘not_home’ should be used for the actual automation.