You haven’t clearly explained what you are trying to do or what conditions need to be met.
That does not look like a normal event…
If you are just trying to trigger when the first person comes home, you can use either the state of the group as Taras suggested or use a Numeric state trigger based on zone.home like:
Hello,
thanks to both.
What I would like to do is to start my google nest as soon as I or my wife will arrive at home.
Thanks to Henrik Sozzi I used some of his scipts
alias: Persone - Evento - Rientro del primo a casa
description: Chiama l'evento rientro del primo a casa
trigger:
- platform: state
entity_id: group.anyone_at_home
to: "on"
action:
- event: arrivo_primo_a_casa
So, if I have understood well, the suggestion is to use the state of the entity group.anyone_at_home as trigger and not the event: arrivo_primo_a_casa.
If group.anyone_at_home is composed of only person and/or device_tracker entities it will have a state of home not on.
If you two are the only tracked people in your HA instance, you can use the state of zone.home as shown in my previous post. Otherwise use the state of the group.