Automation rules Zone.Home issue with number of people at home

Hello,

I have a problem configuring automations with the “Zone.Home” trigger.

At the moment I need to do 2 automations:

  • Comming Home
  • Leaving Home

For comming home :
Trigger: When the number of people is greater than 0

For leaving Home :
Trigger: When the number of people is less than 1

The problem is that the state of the “Zone.Home” entity doesn’t return a number, but the names of the people present, such as “person.me, person.her etc…”.

But when I go to config/entities → zone.home, I can see the number of people present.

How can I retrieve this value for automation?

Thanks
Kind regards

Hi Bertrand,

Because

Does not equal

Hi,

You talk about the difference in text with the capital letters “Z” and “z” ?

It’s just a mistake in my post.

In my HA automation, the entities “zone.home” is recognized correctly.
I choose her in the scrolling list of my entities.

So why this automation doesn’t work ?

Thx