mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 01:46:50 +00:00
Example of multiple state_filter was incorrect (#18252)
The example using '!=' meant that the filter shows everything as a person at home is not at work and a person at work is not at home. (As multiple state_filter operate with 'OR' logic)
This commit is contained in:
parent
5edcd78e66
commit
f819f89e20
@ -127,7 +127,7 @@ card:
|
||||
Entity filter combined with glance card.
|
||||
</p>
|
||||
|
||||
You can also specify multiple `state_filter` conditions, in which case the entity will be displayed if it matches any condition. This example will display everyone who isn't at home or at work.
|
||||
You can also specify multiple `state_filter` conditions, in which case the entity will be displayed if it matches any condition. This example will display everyone who is at home or at work.
|
||||
|
||||
```yaml
|
||||
type: entity-filter
|
||||
@ -136,13 +136,13 @@ entities:
|
||||
- device_tracker.demo_anne_therese
|
||||
- device_tracker.demo_home_boy
|
||||
state_filter:
|
||||
- operator: "!="
|
||||
- operator: "=="
|
||||
value: home
|
||||
- operator: "!="
|
||||
- operator: "=="
|
||||
value: work
|
||||
card:
|
||||
type: glance
|
||||
title: Who's Running Errands
|
||||
title: Who's at work or home
|
||||
```
|
||||
|
||||
Specify filter for a single entity.
|
||||
|
Loading…
x
Reference in New Issue
Block a user