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
trigger:
- platform: state
entity_id: device_tracker.sm_n986b
to: away
condition: []
action:
- service: climate.turn_off
target:
entity_id:
- climate.office_thermostat
- climate.office_aircon
mode: single
But it never triggers.
Any thoughts?