From c97b92affee28809ec29f9d741b1404c3db4fabc Mon Sep 17 00:00:00 2001 From: Rami Mosleh Date: Mon, 3 Oct 2022 14:53:46 +0300 Subject: [PATCH] Add Config entry Template function documentation (#24275) --- source/_docs/configuration/templating.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 1b0c5405cb9..183ae2039ba 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -259,6 +259,20 @@ The same thing can also be expressed as a test: {% endraw %} +### Config Entries + +- `entry_id(entity_id)` returns the config entry ID for a given entity ID. Can also be used as a filter. + +#### Config entries examples + +{% raw %} + +```text +{{ entry_id('sensor.sony') }} # deadbeefdeadbeefdeadbeefdeadbeef +``` + +{% endraw %} + ### Areas - `area_id(lookup_value)` returns the area ID for a given device ID, entity ID, or area name. Can also be used as a filter.