Hello,
I want to make an automation with “zone.home” as trigger, to know if someone is home or not.
The problem is that “zone.home” doesn't seem to return the number of people at home, but the name of the people present.
For example, here's the Yaml code for one of the integrations.
description: “”
trigger:
- platform: state
entity_id:
- zone.home
from: 1 or 2
to: “0”
condition: []
action:
- metadata: {}
data:
code: “1901”
target:
device_id: 93e83aa7c1271b24047d4ee392fc5e70
action: alarm_control_panel.alarm_arm_away
- metadata: {}
data: {}
target:
floor_id:
- rez_de_chaussee
- floor_01
action: light.turn_off
mode: single
On my dashboard, the badge with “zone.home” shows me the number of people present.