A small task for most, but since my amplifier is hidden away, and i normally control it using a app, then the smart thing with Sonos suddenly wasnt that smart anymore.
Openhab solved that for me 🙂
First I had to install a couple of bindings :
After configuring both bindings (follow the links, for guide) I made sure that I could control the following on the Pioneer amplifier.
- Input Source
And the following on the Sonos Connect play (I had to select “Show More” in PaperUI to see all options)
After that i could create the following rule, that monitors the Connect for Playing state, and turns on the amplifier, and select the correct input and volume.
rule “Sonos Stue on”
Item sonos_stue_state changed to PLAYING
Thread::sleep(5000) //Wait for amp to start
I have no turn off rule, since my amplifier auto turns off, after 15 minutes, when no input is being received.
Thanks for reading 🙂