mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add is_hidden_entity documentation (#26429)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
0a45ef9de1
commit
6d32c9383b
@ -361,6 +361,21 @@ The same thing can also be expressed as a test:
|
|||||||
|
|
||||||
{% endraw %}
|
{% 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
|
### 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.
|
- `device_entities(device_id)` returns a list of entities that are associated with a given device ID. Can also be used as a filter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user