1
0
ansible-home-assistant/HELP.md

22 lines
713 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 }}
```
# List Z-wave entities fot checking unavailability
You need to enable node_status for each device, and they need to have `node_status` suffix
```
{% set ids = integration_entities('zwave_js') | select('search', 'node_status$') | 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 }}
```