Script to play Radio 2 on Marantz M-CR610 amplifier using LMS?

…and now a different error when I run the same script again:

2025-01-09 23:27:35.059 INFO (MainThread) [homeassistant.components.script.radio_2_on_marantz_2] Radio 2 on Marantz: Running script sequence
2025-01-09 23:27:35.059 INFO (MainThread) [homeassistant.components.script.radio_2_on_marantz_2] Radio 2 on Marantz: Executing step call service
2025-01-09 23:27:35.062 INFO (MainThread) [pysqueezebox.server] Query run on unknown player bb:bb:8f:34:e8:c6

EDIT: Seems to be a syntax problem - this works:

mode: single
icon: mdi:music
sequence:
  - data:
      command: favorites
      parameters:
        - playlist
        - play
        - item_id:2
    target:
      entity_id: media_player.marantz_m_cr610
    action: squeezebox.call_method

Yes, that error is wrong. I’ve changed it in the next build to say unknown player or incorrect command syntax

Thanks. As a matter of interest, do you know why the 2nd version of my script worked, and the first didn’t? I’ve been staring at it (for probably too long!) and, as far as I can see, the only difference is the order of the elements in the sequence: list. Is the sequence critical here?

No - sequence doesn’t matter. I don’t know what’s wrong with the first one tbh - just have to change it line by line to match the second to see what happens.