Is here anyone using Volumio?

Here’s another user. Great work. Would really love to see multi-room working :slight_smile: already ordered my 2nd Pi + DAC :smiley:

Here is another user. Thank you for youre work!

Hi! Another user in the userbase! Just installed the binding and it works perfectly so far. Thanks for your work @patrickse! Hopefully this binding will get to the main repository :smiley:

Thanks :slight_smile:

I´ve finally found some time to work on the problem with multiple volumio devices. Silly little bug… but I guess I fixed it…

I´ve created a new repository and prepared a release for 2.1.0. There´s still some testing needed…

You can find the jar at https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/2.1.0-SNAPSHOT/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

3 Likes

Great

I will test it this weekend !
Looking forward to it

Peter

Hi Patrickse,

The binding is working well but missing a lot of channels.

Do you have any plans to add channel ton control Volumio?
These channels are easy to add with the V1 API.

https://volumio.github.io/docs/API/REST_API.html

volumio.local/api/v1/commands/?cmd=play
volumio.local/api/v1/commands/?cmd=stop
volumio.local/api/v1/commands/?cmd=pause
volumio.local/api/v1/commands/?cmd=next
volumio.local/api/v1/commands/?cmd=prev
volumio.local/api/v1/commands/?cmd=clearQueue

Play a playlist : volumio.local/api/v1/commands/?cmd=playplaylist&name=Rock

Thanks !

Thank you for your feedback. What exactly are you missing. The binding offers a player channel. Which enables pause/play, next/previous controls and it supports a channel for volume selection.

I am currently not using the rest api for that, but the websocket api. At the moment I do not support clearQueue and playPlaylist. I will put it on the list ;).

Just uploaded a new version…

https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/0.0.7/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

This version implements the playPlaylist and clearQueue channels…

@hpelletier
Please give me feedback

1 Like

I am using Volumio and Openhab to load welcome music in my home. I was missing playPaylist (by playlist name) and using a HTTP call for this.

Wow this is a fast fix, I can now use only your bindings. Websocket API is better than API V1 and working very well.

If you can add two more switch :
Random setRandom(true|false)
repeat setRepeat(true|false)

It will be complete and perfect!

Thanks a lot, hoping to see this bindings in the official bindings.

@hpelletier

Added the missing channels in rel. 0.0.8…

https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/0.0.8/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

Please try and give me feedback…

Hi Patrick,

Can I upgrade with command line or I need to delete the old bindings first and install it again?

Karaf console :

install https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/0.0.8/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

  • Start the bundle by id.

Thanks for the new channel !

I bet you’re safe if you remove the old binding and install the new one by using the karaf console.

I removed and installed again new bundle.

I have this error at loading (random new item) :

16:24:08.096 [INFO ] [ng.volumio2.internal.Volumio2Service] - Connected to Volumio2 on volumio
16:24:08.100 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘volumio2:player:b0601074’ changed from OFFLINE to ONLINE

16:24:08.164 [ERROR] [ing.volumio2.handler.Volumio2Handler] - Could not refresh channel: {}
org.json.JSONException: JSONObject[“random”] is not a Boolean.

I will have a look tomorrow.

Looks like the reply from volumio is unexptected.

I´ve uploaded a new version

https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/0.0.9/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

Please install and activate debug logging for this binding… and repeat… it should log the json object returned from volumio.

Please send me the log of the json object.

Hi
Random is True
Repeat is null in the logs, repeatSingle looks ok with false value.

09:00:18.143 [DEBUG] [ing.volumio2.handler.Volumio2Handler] - {“artist”:“Flume”,“albumart”:“https://i.scdn.co/image/f17878a36d7fe874e52326b653e6b2f7b9478e46",“trackType”:“spotify”,“album”:“Hyperreal”,“consume”:false,“mute”:false,“volatile”:false,“title”:“Hyperreal”,“uri”:“spotify:track:5JpvSu9jWCsHiOFGSJJH2u”,“seek”:63998,“duration”:254,“volume”:100,“random”:true,“bitdepth”:"16 bit”,“stream”:“spotify”,“service”:“spop”,“repeat”:null,“repeatSingle”:false,“position”:9,“status”:“play”,“samplerate”:“320Kbps”}

I played with all the status (random, repeat etc) in the debug the values are correct and corresponding to actions in volumio.

Ok… it looks like I need to catch the null value for repeat… could be a problem with volumio… maybe.

I´ll try to fix it later today…

Exact, looks like a bug in the API.

If I reboot Volumio, the the values (random and repeat) are null.
After they are true or false.

09:12:13.928 [DEBUG] [ing.volumio2.handler.Volumio2Handler] - {“artist”:“Point Point”,“albumart”:“https://i.scdn.co/image/5878e024bb62078187c7ad9b239fd5f94de3ff65",“trackType”:“spotify”,“album”:“Hands”,“consume”:false,“mute”:false,“volatile”:false,“title”:“Hands”,“uri”:“spotify:track:56lfiApDTYBslfBRpmghz6”,“seek”:2042,“duration”:218,“volume”:100,“random”:null,“bitdepth”:"16 bit”,“stream”:“spotify”,“service”:“spop”,“repeat”:null,“repeatSingle”:false,“position”:0,“status”:“play”,“samplerate”:“320Kbps”}

Ah ok… maybe you can create an issue at their github site… anyway I will try to handle it a bit more graceful… :wink:

I´ve just pushed a new release… it should now just set random/repeat to OFF if the value is NULL for either item.

https://github.com/patrickse/org.openhab.binding.volumio2/releases/download/0.0.10/org.openhab.binding.volumio2-2.1.0-SNAPSHOT.jar

btw: good music… never heard it before :wink: