From 6d32c9383be564a1cf817c2020ffc88c4b491fdb Mon Sep 17 00:00:00 2001 From: David Poll Date: Mon, 13 Mar 2023 10:20:42 -0700 Subject: [PATCH] Add is_hidden_entity documentation (#26429) Co-authored-by: Franck Nijhof --- source/_docs/configuration/templating.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index e48a893e666..36c216ddebc 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -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.