Multiple notify devices

Could anyone help with having multiple notify devices. I am trying a repeat action but just can get it to work. Keeps saying “Error: Unable to resolve webhook ID from the device ID”

This is my inputs

    notify_device:
      name: Devices To Notify (Optional)
      description: Device to be notified via the mobile app
      default: []
      selector:
        device:
          integration: mobile_app
          multiple: true
    notify_title:
      name: Notify - Title
      description: Title of the notification.
      default: []
      selector:
        text:
    notify_message:
      name: Notify - Meassage
      description: Meassage of the notification.
      default: []
      selector:
        text:
    notify_action_title:
      name: Notify - Action Button
      description: Name the Action Buttion that will reset the automation, example "Reset Automation".
      default: []
      selector:
        text:

this is my variables

variables:
  notify_device: !input notify_device
  notify_title: !input notify_title
  notify_message: !input notify_message
  notify_action_title: !input notify_action_title

this is my action

action:
  - alias: "Set up variables for the notify actions"
    variables:
      action_off: "{{ 'TURN_OFF_' ~ context.id }}"
  - alias: "Repeat notify for each"
    repeat:
      for_each: !input notify_device
      sequence:
      - device_id: "{{ repeat.item }}"
        domain: mobile_app
        type: notify
        title: '{{ notify_title }}'
        message: '{{ notify_message }}'
        data:
          actions:
            - action: "{{ action_off }}"
              title: !input notify_action_title

:thinking: not sure what I have done wrong.

Hi
Did you manage to solve the Error
I’m running into the exact same issue.
Thanks!

Hi, this is not a blueprint (which is meant for sharing a way to create automations)

Have a look at this: [solved] Automation w/ 3 actions (scripts): how to make them run in parallel instead queued?

Haven’t found the solution yet.

I’ve got this working. It only works for mobile app notifications and it makes some assumptions about the device name matching the notify service name (e.g. a device named “John’s Android Phone” expects the notify service to be notify.mobile_app_john_s_android_phone), but it does work.

blueprint:
  name: Test
  domain: automation
  input:
    notify_device:
      name: Devices
      default: []
      selector:
        device:
          integration: mobile_app
          multiple: true
    time:
      name: Time
      selector:
        time:

trigger:
  - platform: time
    at: !input time

action:
  - alias: Send a notification to each device
    repeat:
      for_each: !input notify_device
      sequence:
        - service: "notify.mobile_app_{{ device_attr(repeat.item, 'name') | slugify }}"
          data:
            title: Test Notification
            message: Hello, multiple device world
            data:
              actions:
                - action: "{{ 'TURN_OFF_' ~ context.id }}"
                  title: Off Action

What you’re trying makes sense, but doesn’t work with template strings. So we unfortunately have to do things like this.