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