- 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: - service: notify.home_assistant data: message: > Device unavailable {% raw %}{{ device_attr(trigger.event.data.device_id, 'name_by_user') }}{% endraw %} is unavailable target: [ "1109936159951441960" ]