1
0
ansible-home-assistant/HELP.md

11 lines
301 B
Markdown
Raw Normal View History

# List all zigbee devices for unavailable automation
```
{% set ids = integration_entities('zha') | map('device_id') | unique | list %}
{% set ns = namespace(result=[]) %}
{% for s in ids %}
{% set ns.result = ns.result + [ [s, device_attr(s, 'name_by_user')] ] %}
{% endfor %}
{{ ns.result }}
```