mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Add Config entry Template function documentation (#24275)
This commit is contained in:
parent
66335075f0
commit
c97b92affe
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user