Hi all, thought I would share my Sonos package which allows me to control some of my home theatre settings.
It presently supports:
- onClick Toggle Home Theatre ( Sub/Surround - keeps both in-sync )
- onDoubleClick Toggle Surround
- onHold Toggle Subwoofer
In order to use this package all you need to do is name your button as follows
sdk://sonos?ip=<ip-of-soundbar>. You shouldn't need to make any changes to the script unless you want to extend its functionality.
You can find this as a standalone script here as a gist. Just create a new package on your hub & paste its contents.
I'm also in the process of building out some other scripts too based on this initial script.