#Keep getting error with Alexa Media Player routine script

21 messages · Page 1 of 1 (latest)

final flint
#
  litter_robot_cycle_routine:
    alias: Litter Robot Cycle Routine
    icon: "mdi:play"
    sequence:
      - service: media_player.play_media
    data:
      media_content_id: Litter Robot Cycle Routine
      media_content_type: routine
    target:
      entity_id: media_player.office_echo
    mode: single'

I keep getting the following error:
Message malformed: Unable to determine action @ data['sequence'][0]

shell prawn
#

hard to say without proper formatting

median muralBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

final flint
#

i am trying to format it lol

#

there we go

shell prawn
#

where did you put that?

final flint
#

in the "scripts" tab under automation

shell prawn
#

then you shouldn't have put "script:" in teh first line

#

you should just build that in the UI

#

if you don't know the proper formatting, just use the UI

final flint
#

I couldnt figure out how to trigger an alexa routine via alexa media player in the UI

shell prawn
#

that indentation is all wrong

#

you just do exactly what you tried to do there, but choosing things in the UI

final flint
#

this is the documentation, is it not exactly the same?

shell prawn
#

it is not

#

and that's intended to be put in configuration.yaml

#

just use the UI

final flint
#

okay i will try the UI

queen plaza
#

Indentation is all over the place.
Looks like you're trying to do it with GPT, as every beginner novadays.
Don't do that without basic understanding how YAML works, and reading the docs.