Trigger on presence (ASUSWRT) - how do I do this?

So I am relative new to Home Assistant…

However not so to home automation - 10 years or so.

So I have pi4b with latest and greatest Home Assistant, and I have included a few things like lamps. I have also installed the AsusWRT plugin for among other things presence detection. When I have this on the overview, it seems perfect. It tracks my self or my wifs mobiles, just as I like. However I have no clue how to trigger any automation on this. Well I can do it in one way, test if the icon has changed. However, I can find no way to do this on “state” (or as it is called in Swedish “Tillstånd”). From the GUI I can tell if I am at Home (“Hemma” in Swedish) or Away (“Borta” in Swedish).

But how do I trigger this?

I have for example an automation that turns on the radio when I arrive homw, and turns it off when I leave. If testing the icon for the device I can solve this, but it is an odd way to solve this.

If I then use a group for me and my wife, which also shows up perfect in the GUI by the way, and presents “Hemma” or “Borta” as expected, then there is no way to trigger on “anyone__home” (as the group is named).

I have tested to do this on “on” / “true” / “Hemma” - and none of them work.

platform: state
to: Hemma
entity_id: group.anyone_home

What am I missing here? Why is this so damn difficult to get working when everything else is just so easy. But triggering on presence from AsusWRT - no show.

Your using device trackers.
Their states are home or not_home

Looking at states in Lovelace will fool you, always look in developer tools without clicking on more info. Meaning read the state in the table, that is the best place to find states as it’s the raw value and not a beautified version of the state.

And here is the group behavior:

Also home or not_home

Excellent - very large thanks! Got it and thanks for the tip on using developer tools - never used that part since well I kind of figured everything out anyway. Well except for this “thing” then.