Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
AutoFrank 372
Hi,
Here is a project to create a dedicated sonos room remote using a minimote remote control.
One of my kids asked if they could have a simple remote for the sonos player in their bedroom and this is what I created
I use the sonos-http-api but I'm sure it could be adapted for the other methods to control sonos with the HC2
This is what we are creating ...
Please login or register to see this attachment.
4 single press functions pre-programed
4 long press functions can be programed
Lets get started.....
The solution has two parts
A scene to interpret the button press and direct them to a VD
Both scene and the VD are included at he bottom of the post. I use the one scene to interpret two minimote remote controls so adjust as you see fit
You only need one scene even if you use multiple remotes/rooms and but you will need one VD per room
Please login or register to see this image.
/monthly_2017_10/OfficeSonosRC.PNG.e48f194e31c1fd3b964820cec8cb1f24.PNG" />If you don't use a HomeTable, please comment out this line wherever you see it
Please login or register to see this code.
SCENE CONFIGURATION
At the start of the scene amend with the ID of your minimote device id's to trigger the scene
Please login or register to see this code.
Adjust the references to the target Sonos RC VD(s)
Please login or register to see this code.
Adjust the reference (851 below) to the remote at the start of each remote block of code
Please login or register to see this code.
And that's it for the scene.....
VD CONFIGURATION
This VD has the 4 single press functions programmed and the place to program the 4 long button presses as well
Import the VD and add the IP address and port (probably 5005) of your sonos-htti-api and name and select room accordingly
Please login or register to see this attachment.
In the code for Button 1 to 4 amend the sonos player name to suit your player
Please login or register to see this code.
Button 4 contains a table with your favorites
Amend the name in quotes in the table to match your sonos setup
Please login or register to see this code.
The code cycles through 5 favorites but can easily be adjusted to cycle through less or more
You also need a place to store the current favorite and I use my Hometable for this by adding a entry to the respective room
Add the highlighted entry to each room you have a remote for.
Please login or register to see this attachment.
Adjust the Button 4 code to match this reference
Please login or register to see this code.
If you don't use a HomeTable contact me and I'll help you create a global to do the same thing
The final part is then to add functions to Buttons 5 to 8 that represent long presses of buttons 1-4
You don't need to if you don't want to
I created these icons - There not great and if somebody has another one I'll gladly swap out
for VD for Scene
That's it
Hopefully this will be of use to a couple of forum users,
_af
Please login or register to see this attachment.
Please login or register to see this attachment.
Edited by AutoFrankLink to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.