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