From f819f89e20067da476c70ce13d2a7a1ab6533a1d Mon Sep 17 00:00:00 2001 From: Stephen Jones Date: Sun, 27 Jun 2021 16:39:52 +0100 Subject: [PATCH] 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) --- source/_lovelace/entity-filter.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_lovelace/entity-filter.markdown b/source/_lovelace/entity-filter.markdown index 2171f2ee03d..8605d34b89b 100644 --- a/source/_lovelace/entity-filter.markdown +++ b/source/_lovelace/entity-filter.markdown @@ -127,7 +127,7 @@ card: Entity filter combined with glance card.

-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.