mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Document config_enty_attr (#33374)
This commit is contained in:
parent
12ce7b4785
commit
ad744eb7d8
@ -447,6 +447,7 @@ The same thing can also be expressed as a test:
|
||||
### Config entries
|
||||
|
||||
- `config_entry_id(entity_id)` returns the config entry ID for a given entity ID. Can also be used as a filter.
|
||||
- `config_entry_attr(attr)` returns the value of `attr` for the config entry of the given entity ID. Can also be used as a filter. The following attributes are allowed: `domain`, `title`, `state`, `source`, `disabled_by`. Not supported in [limited templates](#limited-templates).
|
||||
|
||||
#### Config entries examples
|
||||
|
||||
@ -456,6 +457,12 @@ The same thing can also be expressed as a test:
|
||||
{{ config_entry_id('sensor.sony') }} # deadbeefdeadbeefdeadbeefdeadbeef
|
||||
```
|
||||
|
||||
```text
|
||||
{{ config_entry_attr(config_entry_id('sensor.sony'), 'title') }} # Sony Bravia TV
|
||||
```
|
||||
|
||||
|
||||
|
||||
{% endraw %}
|
||||
|
||||
### Floors
|
||||
|
Loading…
x
Reference in New Issue
Block a user