LMS Automation change tracks

Hi Guys,

I’m trying to create a simple automation to use a zigbee buttom to move to the next playing track in Squeezebox. So far I’ve got this:

dimup_short:
      - service: squeezebox.call_method
        data:
          command: playlist index 
          parameters: +1
        target:
          entity_id: media_player.loungeplayer

But it’s not working , any help would be much appreciated?

1 Like

For anyone wanting to do this, I have found the following code works for me

service: squeezebox.call_method
data:
command: playlist
parameters:
- index
- ‘-1’
target:
entity_id: media_player.officeplayer

1 Like