1
0
ansible-home-assistant/roles/automations/templates/unavailable-zwave.yaml.j2

18 lines
521 B
Plaintext
Raw Permalink Normal View History

- id: info_zwave_unavailable_notice
alias: '[INFO][Z-Wave] Device offline'
mode: single
trigger:
- platform: state
to: dead
entity_id:
{% for device in devices %}
- {{ device.entity_id }} # {{ device.name }}
{% endfor %}
action:
2024-05-19 10:19:29 +00:00
- service: notify.home_assistant
data:
message: >
2024-05-19 10:19:29 +00:00
Device unavailable
{% raw %}{{ device_attr(device_id(trigger.event.data.device_id), 'name_by_user') }}{% endraw %} is unavailable
2024-05-19 18:03:33 +00:00
target: [ "1109936159951441960" ]