Hubitat Sonos Integration

The hubitat sonos integration does not work very good. IFTTT has a function to play favorites on sonos. This does work. I would like to be able to play a favorite from the sonos ones available from hubitat directly to sonos.

That's a reasonable thing to want to do, but I think that reprogramming it yourself from scratch will be a lot of work.

You might want to use something that already exists to get you started faster. I prefer the node-sonos-http-api: GitHub - jishi/node-sonos-http-api: An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.

The downside of that approach is that you need an external machine, but it runs well on a Raspberry Pi that you might already have.

Thanks - I saw that, I might try that. Was hoping to find something that ran native

Depending on your definition of "native", this cloud-based set of APIs could also do the trick: https://developer.sonos.com/reference/control-api/favorites/

1 Like

Yep, what I was looking for is some groovy code running on hubitat or smartthings that implemented some of that. Not sure what the sonos integration app on hubitat uses, but it does not work very well. It must use the undocumented local lan interface because it doesn't require any login to sonos.

You might like to look at the node red sonos implementation. It's pretty good, and doesnt require any login to sonos, although you do need to specifiy IP adresses.

I haven't been able to get the Sonos Integration to even install (I think). After you click "add Built-in app" and click "Sonos Integration" in the "Install New Built-In App" dialog it goes straight to "Discovery Started!" and then can't find my Sonos. No indication that anything's actually been installed...

Are your Sonos speakers on the same VLAN (IP range) as your Hubitat hub? What kind of speakers do you have? I know they recently made a change to try to address issues with the Symfonisk speakers I think that was in the latest firmware. Sonos speakers can also be added manually if you find all the IP addresses for your speakers. Either way you will probably want to setup a DHCP reservation for each speaker to keep the IP from changing.

2 Likes