From 1cb48457d2784082b8353d964ae3ce79ce2b7582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 16 Jan 2019 12:54:27 +0100 Subject: [PATCH] Description of entity-filter use --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 3960c08..76e2933 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,38 @@ entities: ``` ![folding groups](https://user-images.githubusercontent.com/1299821/47855259-5d283c00-dde4-11e8-8405-94c269e53935.png) + + +#### Use with entity-filter +The `items` list can be populated by `entity-filter` using a trick: + +```yaml +type: entities +title: Entity Filter Fold +entities: + - type: custom:hui-entity-filter-card + entities: + - light.bed_light + - light.ceiling_lights + - light.kitchen_lights + state_filter: + - "on" + card: + type: custom:fold-entity-row + head: + type: section + label: Lit lamps + + - type: custom:hui-entity-filter-card + entities: + - light.bed_light + - light.ceiling_lights + - light.kitchen_lights + state_filter: + - "off" + card: + type: custom:fold-entity-row + head: + type: section + label: Unlit lamps +```