Volumio not resuming Songs

Hi Guys,

I recently managed to get a Raspberry Pi 2b working with Volumio to handle as an additional Speaker for my Phone.
I currently have two additional Sonos Speakers and I managed to create automations to “transfer” my currently playing Spotify-Song (via Spotify Connect) from one to the respective Sonos-Speaker and they work flawlessly.
They either:

  • pass the song from one Sonos-Speaker to each other (depending what automation gets triggered)
    or
  • they “grab” the currently playing Song on my Mobile phone and start playing it. (When I come in Home e.g. )
    One specific Example for my bathroom:
- id: '1578940391679'
  alias: Auto_Bad_Beleuchtung_An_Morgens_Abends
  description: ''
  trigger:
  - device_id: ccb3a8a9976f4d408686a7b669a6c3ee
    domain: binary_sensor
    entity_id: binary_sensor.prox_bad
    platform: device
    type: motion
  condition:
  - after: '23:00'
    before: '11:00'
    condition: time
  action:
  - data:
      brightness_pct: 10
      transition: 5
    entity_id: light.bad
    service: light.turn_on
  - entity_id: media_player.sonos_bed
    service: media_player.media_pause
  - entity_id: media_player.volumio
    service: media_player.media_pause
  - entity_id: media_player.sonos_bad
    service: media_player.media_play

To my Problem:

I tried the same thing on Volumio thanks to the “Spotify Connect” Plugin, but it seems to not fully “follow/grab” what I was playing and it starts playing the last played song (or a random one) in the Playlist of Volumio and completely ignores what has been played on my Sonos-Speakers OR my Phone.

The only thing that bugs me is that the sonos-speakers DO grab the song from Volumio, (they resume the song that is currently playing) so Volumio is keeping somehow the connection to the Servers.

My automation for Volumio uses the same scheme:
(please dont mind the trigger and the alias)

- id: '1580321733318'
  alias: test
  description: ''
  trigger:
  - event: sunrise
    platform: sun
  condition: []
  action:
  - entity_id: media_player.sonos_bed
    service: media_player.media_pause
  - entity_id: media_player.volumio
    service: media_player.play_media

I am afraid that this is a Volumio-Specific thing, but I thought maybe someone got it working by doing something like a snapshot of the attributes of the currently playing song from the last active speaker and apply it to the media_player (volumio)? Is this even possible?

Please advise and tell me what you might think of it and maybe how you managed to get it working.
I am always open for other solutions.

Thank you for the wall of text and cheers.

UPDATE

Got it to work now… I´m going to documentate it so that everyone has a solution if he/she encounters this specific problem…

I got it working now by installing the official Spotify-Connect-Addon and followed the configuration.

Then I could change the Source to my Volumio-Device manually via the lovelace. (I checked and wrote down the “Devicename” for later configuration)

After the installation of the addon, HA created an entity media_player.spotify.
I tried the automation and created something to test it and it works now without any problems.

- id: '1580321733318'
  alias: Auto_Wohnzimmer_Resume_Music
  description: Bei Bewegung im Wohnzimmer ändert sich die Source
  trigger:
  - device_id: 905c4fe7825a4235899eb7e2486fddb5
    domain: binary_sensor
    entity_id: binary_sensor.presence_33
    platform: device
    type: motion
  condition: []
  action:
  - data:
      source: Volumiopi
    entity_id: media_player.spotify
    service: media_player.select_source

spotifyaddon2

Hope I could help someone…

1 Like