I want to show all people, that are not at home in a Glance Card, using Entitiy Filter. I have defined plenty of zones, so people that are not home do not just have “not_home”. I do not want to list all possible zones in the state_filter attribute, I just want to filter for people, which are not “home”.
type: entity-filter
entities:
- person.ann
- person.max
- person.mary
state_filter:
- not (home) / !"home" / ...?
card:
type: glance
title: People at home
Does anybody know, if this is possible and how the syntax is?
I don’t think it is possible using the entity-filter card. Documentation doesn’t state that you can have negative tests, and my testing where I have tried using not and ! didn’t work.
I suggest that you look at custom “monster card”
The only other thing I can think of is to define a template binary sensor for home, and then display that in your card. That may not suit though.