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 **
==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
- Run VD with updateData = "false" to operate in normal mode
- Enable Debug = true to see status in debug window
VD attached below
Suggested icon
Sonos_Monitor_1.0.vfib