Hi champs, I’m really new to openhab, I found it to be a great project to get into. My problem is setting up my Sonos to my Openhab.
What I did so far:
openhab.cfg
#Add a line for each Sonos device you want to pre-define
#The format is .udn=
sonos:Diane.udn=RINCON_000E58A8E02401400_MR
#Interval, in milliseconds, to poll the Sonos devices for status variables
sonos:pollingPeriod=1000
.item file
Switch Sonos “Power Sonos” {sonos="[ON:RINCON_000E58A8E02401400_MR:play],[OFF:RINCON_000E58A8E02401400_MR:stop]"}
Dimmer VolumeSonos “Sonos Volume” {sonos="[RINCON_000E58A8E02401400_MR:volume]"}
Switch ledstatus “LedStatus” (Sonos) {sonos="[ON:Diane:led], [OFF:Diane:led]", autoupdate=“false”}
String currenttrack “CurrentTrack [%s]” (Sonos) {sonos="[RINCON_000E58A8E02401400_MR:currenttrack]", autoupdat$
String radiostation “RadioStation [%s]” (Sonos) {sonos="[Diane:radio]", autoupdate=“false”}
Switch SonosPlayPause “Play/Pause” (Sonos) {sonos="[ON:Diane:play],[OFF:Diane:pause]"}
Switch SonosPlayControl “Sonos Play/Pause"
Switch next “Next track” (Sonos) {sonos=”[ON:Diane:next]"}
.Sitemap
Frame label=“Sonos”{
Switch item=Sonos
Slider item=VolumeSonos
Switch item=SonosPlayPause
Switch item=SonosPlayControl
Text item=currrenttrack label=“Track: [%s]”
}
I still can’t get the music to play, stop, next or view the current track, any help would be a great help
thanks