Light on when someone arrives at home

Hi,

So you want: whenever one of your users/persons arrives (in zone.home) a light turns on?
why you want to know for this how many people are home?

I changed the helper to a number template with as

value_template: {{ states('zone.home') }}

so it is no longer a sensor as I had earlier. I kept the older helper since it shows some more details, like who is arriving.
The trigger condition etc. is unchanged and seemed to be correct.
I still don’t know why it works with the number helper and not with the sensor helper.