Wifi Presence in Automations not working 4me

New Home Assistant user here. I’ve got my ubiquiti unifi networking communicating with my HAOS config. Setup my wife and I as ‘persons’ in HA and our presence is determined by our wifi phone wifi connections to the router. This all seems to be working correctly. I see Home and Away status for each person in the HA overview and entity details for each person.

BUT I cannot get an automation to trigger properly using these persons. See screenshot below. I’m attempting to activate or deactivate a kitchen camera motion-detect based on our status of home or away. See the automation (UI-based) below. What am I doing wrong? This automation NEVER triggers despite the fact I can see the home and away status changing…

I’ve tried home, Home, away, Away, not_home… Nothing results in trigger that is visible in the traces.

Have you tried removing the “from” field?

1 Like

Hello HA-Fella,

One suggestion is to trigger off the entity zone.home. This counts the number of people in the zone. When it reaches 0, no one is home or the phones are off.

1 Like

thanks @jackjourneyman removing the from field and editing the to field manually (in YAML) to ‘home’ fixed it.

@Sir_Goodenough I like this approach. I will try to create an automation following this approach.

I need to learn how to write my own YAML as the UI for automations seems a little buggy…

1 Like

dumb question do I need to restart HA after every new or modified automation?

No. If you go to Developer Tools, under " YAML configuration reloading" you can click on Automations.

You didn’t actually need to use yaml - you could just have removed “Away” from the from field in the UI.