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”.
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.
I don’t see sucgmh behaviour on my system not do I have an idea why.
I would set the log:level to DEBUG for the Sonos binding and for a test try it using a rule without setting the notificationvolume ( setting that once should be sufficient).
Thanks, I will try to collect more information. Quickly tried to set the loglevel in the console with
log:set DEBUG org.openhab.binding.sonos
but I don’t see much in the generated logfiles.
Also tried to have the sonos logs written in a seperate files according to the documentation, but the file is not generated:
Ah thanks! Guess we have to look in the code for that information?
Anyway, the logfile is now used, but I only get one type of entry in it: 19-Nov-2018 10:58:09.002 [DEBUG] [e.binding.sonos.internal.handler.ZonePlayerHandler] - Polling job
So something is still not quite right. Here is the config I’m using now:
This ever get resolved? I think I’m bailing on Sonos and getting a Echo Plus but mine won’t play anymore either. Very basic say command right now that worked before and no longer.
Unfortunately not. But I didn’t spend an awful lot of time to resolve it to be honest. I went a similar way and use a Google Home Mini now to output any spoken commands. Works great so far!
Which Sonos binding are you using AND did you start music via the echo before?
I case both is a Yes, I suspect it to be the bug that is in the version which comes with the 2.4 stable release, it is resolved in the snapshot version.
The one in the Paper UI 2.4 stable. As for starting the music via the echo, not sure but it’s possible I hit the play button on it to try and get it to come back alive. So I install my bindings thru the Paper UI, how would I replace this with one in the addons folder and what would it break in doing so?