#Unable to evaluate number of persons in zone to trigger automation

1 messages · Page 1 of 1 (latest)

topaz flower
#

I'm trying to run an automation based on the number of people in the home zone. However when the appropriate state should be met, nothing happens. I tried to evaluate it as a condition but nothing happens, neither fail nor pass. I tried this with the visual editor, the yaml is

condition: numeric_state
entity_id: zone.home
attribute: persons
below: 5

The info on zones claims this should be possible, so I must be doing something wrong. Help? <3
(sorry if this has been answered, but I couldn't find any posts that seemed to have quite the same issue)

lavish fractal
#

You are asking about a trigger, but you are showing a screenshot and yaml of a condition.

topaz flower
#

Yeah I think the source issue is something about the evaluation

#

Like, neither of them work.

lavish fractal
#

Ah, right. You have selected attribute 'Persons', which isn't what you want.

#

The state of a zone is the number of people. So you should not have an attribute.

#

Just clear that field.

topaz flower
#

Oh my god it's like that. I feel very stupid

#

Thank you!