eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
861 stars 787 forks source link

Sonos binding 2.5M1: no sound via play command #6913

Closed mattelacchiato closed 4 years ago

mattelacchiato commented 4 years ago

Running each of these commands in console does not play audio on my sonos:

openhab> smarthome:audio play doorbell.mp3
openhab> smarthome:audio sinks
  Sonos (sonos:zoneplayer:living)
* Sonos (sonos:PLAY3:kitchen)
  System Speaker (javasound)
  System Speaker (with mp3 support) (enhancedjavasound)
  Web Audio (webaudio)
openhab> smarthome:audio play sonos:PLAY3:kitchen doorbell.mp3
openhab> smarthome:audio play sonos:PLAY3:kitchen doorbell.mp3 8

I can see this in the logs:

openhab_1   | 07:37:31.779 [INFO ] [marthome.event.ItemStateChangedEvent] - KI_Sonos_Title changed from 8e3d3cb0-76fa-4423-a579-ec895098a6a9.mp3 to d2c8a7b4-c801-4dda-8460-8bed63b928ce.mp3
openhab_1   | 07:37:31.786 [INFO ] [marthome.event.ItemStateChangedEvent] - KI_Sonos_Control changed from PAUSE to UNDEF
openhab_1   | 07:37:36.152 [INFO ] [marthome.event.ItemStateChangedEvent] - KI_Sonos_Control changed from UNDEF to PAUSE

When trying this while something is already playing on this speaker, the current song stops. Therefore I know that it is the correct speaker and the setup itself seems to work correctly.

mattelacchiato commented 4 years ago

Could not reproduce in M5