From 9192d1fd99342427dfd530cd537b4f9b7c6374e5 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Tue, 31 Aug 2021 10:16:38 -0400 Subject: [PATCH] Support device name as input to device_id template function (#19142) Co-authored-by: Martin Hjelmare --- source/_docs/configuration/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index a1a55acb75c..28827b29c3e 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -212,7 +212,7 @@ The same thing can also be expressed 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. - `device_attr(device_or_entity_id, attr_name)` returns the value of `attr_name` for the given device or entity ID. Not supported in [limited templates](#limited-templates). - `is_device_attr(device_or_entity_id, attr_name, attr_value)` returns whether the value of `attr_name` for the given device or entity ID matches `attr_value`. Not supported in [limited templates](#limited-templates). -- `device_id(entity_id)` returns the device ID for a given entity ID. Can also be used as a filter +- `device_id(entity_id)` returns the device ID for a given entity ID or device name. Can also be used as a filter. #### Devices examples