I’m trying to use say() together with my Sonos speakers, but I’m facing a strange issue.
The following rule doesn’t work if my Sonos controller (on my mobile device) says “No music selected”.
Sonos_office_notificationvolume.sendCommand(25) say("Simple voice test.", "voicerss:enUS", "sonos:PLAY1:office")
If I start some music first, executing the rule works correctly one time.
When I execute the rule a second time, it doesn’t work anymore. I first need to start and stop some music again for it work.
I can also reproduce it in the karaf console with
smarthome:audio play sonos:PLAY1:office doorbell.mp3
It only works, if there is or was something playing on that Sonos speaker.