Hi Everybody, new user here and I’m just getting an initial setup going to start testing components and integration for a new house. I’ve worked my way through a bunch of stuff already (this forum is awesome), but I’ve hit the first snag that I can’t seem to work past…
No matter what commands I issue to my Sonos player through the interface, nothing is happening to the control of the physical device. I’m sure it’s just my inexperience with the platform and hopefully it’s an easy answer. I’ve kept the setup deliberately simple for debugging and I’ll try to provide as much info as possible below.
-I have the sonos binding installed, and the .things/items/sitemap files have been manually defined. Haven’t added anything through paperUI.
-The controller UI elements from the sitemap shows up correctly in both basic and paperUI, however ‘Status’ and ‘Now Playing’ don’t appear to be polling correctly (it just shows “-”).
(edited with better info)
-Initially was able to see the commands (play, pause, volume changes etc) propagating into the logs, and they were erroring due to wrong (retained/stale) channels. Cleared those out and now the commands appear in the logs correctly when controlled through paperUI & basicUI…
i.e. ‘2017-01-23 07:35:49.089 [ItemStateChangedEvent ] - Sonos_Controller changed from PLAY to PAUSE’
-Below are the contents of the relevant files:
#sonos.things
Thing sonos:PLAY5:living [ udn=“RINCON_000E588F58XXXXXXX”, refresh=60 ]
#sonos.items
Group Sonos
Player Sonos_Controller “Controller” (Sonos) {channel=“sonos:PLAY5:living:control”}
Dimmer Sonos_Volume “Volume [%.1f %%]” (Sonos) {channel=“sonos:PLAY5:living:volume”}
Switch Sonos_Mute “Mute” <soundvolume_mute> (Sonos) {channel=“sonos:PLAY5:living:mute”}
Switch Sonos_LED “LED” (Sonos) {channel=“sonos:PLAY5:living:led”}
String Sonos_CurrentTrack “Now playing [%s]” (Sonos) {channel=“sonos:PLAY5:living:currenttrack”}
String Sonos_State “Status [%s]” (Sonos) {channel=“sonos:PLAY5:living:state”}
#sonos.sitemap
sitemap sonos label=“Main Menu”
{
Frame label=“Sonos” {
Default item=Sonos_Controller
Slider item=Sonos_Volume
Switch item=Sonos_Mute
Switch item=Sonos_LED
Text item=Sonos_CurrentTrack
Text item=Sonos_State
}
}
-In the karaf console, I see the following output:
#smarthome:things list
sonos:PLAY5:living (Type=Thing, Status=OFFLINE, Label=PLAY 5, Bridge=null)
#smarthome:items list
Sonos (Type=GroupItem, Members=6, State=UNDEF, Label=null, Category=player)
Sonos_Controller (Type=PlayerItem, State=PAUSE, Label=Controller, Category=null, Groups=[Sonos])
Sonos_Volume (Type=DimmerItem, State=74, Label=Volume, Category=soundvolume, Groups=[Sonos])
Sonos_Mute (Type=SwitchItem, State=UNDEF, Label=Mute, Category=soundvolume_mute, Groups=[Sonos])
Sonos_LED (Type=SwitchItem, State=UNDEF, Label=LED, Category=switch, Groups=[Sonos])
Sonos_CurrentTrack (Type=StringItem, State=UNDEF, Label=Now playing, Category=text, Groups=[Sonos])
Sonos_State (Type=StringItem, State=UNDEF, Label=Status, Category=text, Groups=[Sonos])
#smarthome:links list
Sonos_Volume -> sonos:PLAY5:living:volume
Sonos_State -> sonos:PLAY5:living:state
Sonos_Controller -> sonos:PLAY5:living:control
Sonos_LED -> sonos:PLAY5:living:led
Sonos_CurrentTrack -> sonos:PLAY5:living:currenttrack
Sonos_Mute -> sonos:PLAY5:living:mute
Everything seems in order to my newbie eye, not really sure where to go next…can’t find any relevant posts for this one unfortunately. I double checked the upd for the player and it’s correct from what I can see. Any help is greatly appreciated (it’s probably something super newb that I missed!). Thanks!