2023-12-15 12:23:24 +00:00
|
|
|
- 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
|
2023-12-15 12:23:24 +00:00
|
|
|
data:
|
|
|
|
message: >
|
2024-05-19 10:19:29 +00:00
|
|
|
Device unavailable
|
2023-12-15 12:23:24 +00:00
|
|
|
{% raw %}{{ device_attr(trigger.event.data.device_id, 'name_by_user') }}{% endraw %} is unavailable
|
2024-05-19 18:03:33 +00:00
|
|
|
target: [ "1109936159951441960" ]
|