Python Plugin: Sonos http API

Python and python framework

Moderator: leecollings

Post Reply
Tuk90
Posts: 50
Joined: Thursday 04 January 2024 15:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python Plugin: Sonos http API

Post 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
Last edited by Tuk90 on Saturday 11 May 2024 9:59, edited 1 time in total.
Tuk90
Posts: 50
Joined: Thursday 04 January 2024 15:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Sonos http API

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest