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
Re-coded my Sonos status VD into a more generic table based VD
This VD monitorsd and displays status of Sonos devices (OFFLINE, STATE (PLAYING, STOPPED, ETC & VOLUME)
Notification options for when a player goes offline and back online and is configurable (Smart Message Hub or HC2 email)
One Alert will be received when player goes offline and another when it comes back online
Online/Offline status is captured in global table (SonosTable) that can be used by other scenes and VD's
** YOU NEED TO BE USING THE SONOS-HTTP-API FOR THIS VD **
** YOU NEED TO BE USING THE WWWAPI MONITOR FOR THIS VD **
Please login or register to see this attachment.
Please login or register to see this image.
/monthly_2017_10/59d5522698c41_sonos4.PNG.7903477619d576dc51acc00232cacda7.PNG" alt="59d5522698c41_sonos4.PNG.7903477619d576dc51acc00232cacda7.PNG" />==INSTALLATION STEPS ==
- Import the Sonos Monitor 1.0 virtual device, add IP and Port of sonos API on VD General Tab
- Status heading and one sonos player label (Label1) has been created as part of the VD
- it will created a global variabnle called SonosTable
- Add one label per extra sonos payers you have using the default label naming (Lable2, Lable3, Label4, etc)
- Populate the sonos table with Player (what player is called in sonos) and Room (room name in HC2)
- Run VD with updateData = "true" to populate the device table. Open debug window and you shold see
- "Sonos Table successfully Updated" followed by which sonos players are online
Please login or register to see this attachment.
- Run VD with updateData = "false" to operate in normal mode
- Enable Debug = true to see status in debug window
Please login or register to see this attachment.
VD attached below
Suggested icon
Please login or register to see this attachment.
Link to comment
Share on other sites
3 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.