1
0
ansible-home-assistant/templates/unavailable-zha.yaml.j2

20 lines
555 B
Plaintext
Raw Normal View History

- id: info_zha_unavailable_notice
alias: '[INFO][ZHA] Device offline'
mode: single
trigger:
{% for device in devices %}
# {{ device.name }}
- device_id: "{{ device.id }}"
domain: zha
platform: device
type: device_offline
subtype: device_offline
{% 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(trigger.event.data.device_id, 'name_by_user') }}{% endraw %} is unavailable
2024-05-19 10:19:29 +00:00
target: [ "1070507369164984372" ]