Zone change doesn't seem to trigger

on my dashboard I have added the persons of the house, and added the mobiles as tracker. This works fine, the status reflects “Home” or “Away” correctly. Now I wanted this to trigger a heater, but it never triggers the automation… this is the yaml:

alias: A_Aaron_weg_Heizung_low
description: “”
triggers:

  • trigger: zone
    entity_id: person.xxxxxx
    zone: zone.home
    event: leave
    conditions:
    actions:
  • action: climate.set_temperature

am I doing something wrong?

hello Lars,

The way you can figure out what the problem is here is look at developer - state for

and see that the value is and what it changes to when it changes.
Open your Home Assistant instance and show your state developer tools.
You will see a number that represents the number of people home. Use the number to trigger off of if you want to know when someone is home or not.

I can already see if someones home, also zone.home state seems to correctly count. But I want to activate something when a specific person leaves
grafik

Then you want to use a state trigger with the person.whoever entity and use from: home

Any time that person’s state changes from home to anything else, the trigger will fire.

ok, but that doesn’t explain, why what I (clicked together) from the example doesn’t work? At least it felt like the right thing :wink: