mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +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 %}
|
||||
|
||||
|
||||
### 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user