#on your conversation agent notification

1 messages · Page 1 of 1 (latest)

proud hemlock
#

Again, this seems like an issue for #voice-assistants-archived ... the AI seems to be trying to run actions that don't exist. From the automation trace: "speech": "Something went wrong: Action weather.set_weather not found" I don't use that, so I can't really give you any guidance. I have tested the template I posted and it works fine to produce the desired text output.

pliant anchor
#

it seems it was my own error as when i pasted into my yaml it did not indent correctly. I have fixed that and ow i get this when i run it:
Error rendering service name template: UndefinedError: 'repeat' is undefined

#

so i have gotten to the repeat part of it before it errors out

#

this is mine: repeat: sequence: [] for_each: "{{select_notifiers}}"

hot parrot
#

what's your full code now?

pliant anchor
hot parrot
#

you need to place that action to send the notification in the repeat sequence

#
- repeat:
    sequence:
      - alias: Send notification
    for_each: "{{ select_notifiers }}"
#

but then the whole action of course

pliant anchor
#

Just updated it

hot parrot
#

still wrong

#

nothing seems changed

#

sequence: [] indicates that your repeat action has an empty sequence, so no actions are added

#

your notify actions needs to be listed there

pliant anchor
#

Message malformed: Unable to determine action @ data['action'][5]['repeat']['sequence'][0]

#

I got that error when i tried:

repeat: sequence: - alias: Send notification for_each: "{{ select_notifiers }}"

hot parrot
#

that's why I said the whole action needs to be there

#

Let me spell it out for you

  - repeat:
      sequence:
        - alias: Send notification
          action: "{{ repeat.item }}"
          data:
            title: "{{ now().strftime('%A') }} Agenda"
            message: "{{ agent.response.speech.plain.speech }}"
      for_each: "{{select_notifiers}}"