#on your conversation agent notification
1 messages · Page 1 of 1 (latest)
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.
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}}"
what's your full code now?
here is my code: https://dpaste.org/4Zxzb
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
repeat: sequence: [] for_each: "{{select_notifiers}}" alias: Send notification
Just updated it
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
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 }}"
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}}"