Add is_hidden_entity documentation (#26429)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
David Poll 2023-03-13 10:20:42 -07:00 committed by GitHub
parent 0a45ef9de1
commit 6d32c9383b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,21 @@ The same thing can also be expressed as a test:
{% endraw %}
### Entities
- `is_hidden_entity(entity_id)` returns whether an entity has been hidden. Can also be used as a test.
### Entities examples
{% raw %}
```text
{{ area_entities('kitchen') | reject('is_hidden_entity') }} # Gets a list of visible entities in the kitchen area
```
{% endraw %}
### Devices
- `device_entities(device_id)` returns a list of entities that are associated with a given device ID. Can also be used as a filter.