Page 1 of 1

Python Plugin: Sonos http API

Posted: Tuesday 07 May 2024 20:54
by Tuk90
Hi all,

I bought my self a Sonos speaker, and I wanted to integrate it nicely into Domoticz, the forum post of Holland that integrated everything via Lua scripts was not extensive enough for me :). I also wanted to control the favorites that are being played and I wanted to have a plug and play option.

Anyway, this Python plugin is based on the HTTP API that Jishi created, this needs to be installed before the plugin works, how to do so is documented on his Github: https://github.com/jishi/node-sonos-http-api

My plugin consists of three devices:
- A favorite device which automatically gets filled with your favorites that are setup via the Sonos app, the favorite list will only be updated when the device is created, if anyone has a tip on how to update the options of the device I would like to hear it :).
- A control device that lets you do the basic controls like volume, play/pause, shuffle mode, next and previous song
- A text device that displays the current song is being played.

The plugin is found here: https://github.com/tuk90/sonos-domoticz

Re: Python Plugin: Sonos http API

Posted: Saturday 11 May 2024 9:55
by Tuk90
I updated the version to make the volume adjustment configurable in percentages. Now it is possible to decide with how much % the volume will be increased/decreased on each click.