Location tracking not triggering

I am trying to use location in the app to triger an automation. I have the app properly registered and tracking the location of my phone:

I have this as the animation:

alias: Turn Office heater Off if Peter leaves home
description: Turn Office heater Off if Peter leaves home
  - platform: state
    entity_id: device_tracker.sm_n986b
    to: away
condition: []
  - service: climate.turn_off
        - climate.office_thermostat
        - climate.office_aircon
mode: single

But it never triggers.
Any thoughts?

The state you see in the history is the β€œnice” state in the frontend based on your language, you need to use the real state, which can be found under Developer Tools β†’ States. It is not_home instead of away.

1 Like

Many Thanks I will give that a try.