add integration entities helper (#20371)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Marcel van der Veldt 2021-11-20 23:47:22 +01:00 committed by GitHub
parent e859b97a6d
commit 4d44e2f987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,6 +278,25 @@ The same thing can also be expressed as a filter:
{% endraw %}
### Integrations
- `integration_entities(integration)` returns a list of entities that are associated with a given integration, such as `hue` or `zwave_js`.
- `integration_entities(title)` if you have multiple instances set-up for an integration, you can also use the title you've set for the integration in case you only want to target a specific device bridge.
#### Integrations examples
{% raw %}
```text
{{ integration_entities('hue') }} # ['light.hue_light_upstairs', 'light.hue_light_downstairs']
```
```text
{{ integration_entities('Hue bridge downstairs') }} # ['light.hue_light_downstairs']
```
{% endraw %}
### Time
`now()` and `utcnow()` are not supported in [limited templates](#limited-templates).