Add Config entry Template function documentation (#24275)

This commit is contained in:
Rami Mosleh 2022-10-03 14:53:46 +03:00 committed by GitHub
parent 66335075f0
commit c97b92affe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.