Hello,
I’m using openhab2 beta 4 in my Ubuntu 14.04 server. I have Sonos PLAYBAR connected to my TV and openhab.
I have following code in my Rules:
sendCommand(SonosSave,ON)
sendCommand(SonosVolume,15)
sendCommand(SonosFavorite,"kotona")
Thread::sleep(3000)
sendCommand(SonosRestore,ON)
This works when I’m playing radio. So it will play mp3 and return to the radio station after 3 sec.
But if I’m using my TV (that is connected via optical cable) this code will play my mp3 twice (and the second time with orginal volume) and not returning to TV sound.
I checked the code (was not able find reason) and also did this
openhab> log:set DEBUG org.openhab.binding.sonos
openhab> log:list
Logger | Level
-------------------------------------------------------------------
ROOT | INFO
javax.jmdns | ERROR
org.eclipse.smarthome | INFO
org.jupnp | ERROR
org.openhab | INFO
org.openhab.binding.sonos | DEBUG
org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper | ERROR
smarthome.event | INFO
smarthome.event.InboxUpdatedEvent | ERROR
smarthome.event.ItemStateEvent | ERROR
smarthome.event.ThingStatusInfoEvent
But I was not able to see any markings for org.openhab.binding.sonos in the log files.
Help would be appreciated.
–Ari