HubiThings Sonos Control (via Smarthings)

In my quest to remove unnecesaary devices on my network, I created Hubithings Sonos Control.

The only real purpose of this app was to allow me to shutdown my Raspberry Pi that ran njschwartz's smartApp that allowed access to Picos in smartthings. I would then use my ABC app to map buttons and control my Sonos speakers. I suppose I could have waited for Hubitat to integrate Sonos or @krlaframboise to allow button devices to work with Other Hub app, but I'm impatient and this is one of the things I use every day.

Disclaimer: this is a very hacked together solution but works perfectly for me so I thought I'd share it. See steps below.

  1. Create a Virtual Dimmer device in Hubitat and name appropraitely (eg "Virtual Bathroom Sonos")
  2. Add virtual device to Other Hub as dimmable light.
  3. In ST, ensure device now appears in Thing list and then install HubiThings smartApp in ST.
  4. Configure the HubiThings app with the Other Hub Virtual Device and Sonos Speaker you would like to control.
  5. Set volume adjustment +- value. (increase/lowers volume by this percent)
  6. In Hubitat use a button controller app (ABC recommended) to configure Pico so set the dimmer values according to the table below.

Sonos Commands based on dimmer val:
Level 11 - play/pause
Level 21 - increase volume by 5
Level 41 - decrease volume by 5
Level 51 - next track

My Bathroom Sonos ABC config:

1 Like

As an FYI, for those interested in why I chose those volume levels. My logic is as follows.

Level 11 = Button 1 Pushed
Level 12 = Button 1 Held

Level 21 = Button 2 Pushed
Level 22 = Button 2 Held

Level 31 = Button 3 Pushed
Level 32 = Button 3 Held


This way it at least follows some kind of logic if I decide to adapt this to other device types or additional Sonos controls.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.