I’m running Openhab in docker using the official image and am trying to play a sound through my sonos using the following rule (with my sonos being set as the default audio sink):
rule "Doorbell"
when
Item rfReceiver received update
then
logInfo('Info', 'Doorbell pressed')
playSound("doorbell.mp3")
end
But on the sonos I can see it attempts to play the file then fails with the error:
Unable to play fb29d017-7978-436d-ab4e-7c0bf74f6483.mp3, cannot connect to http://172.18.0.1:8080
So to me that says that Openhab is sending its internal docker address (172.18.0.1
) to Sonos rather than its local network address that Sonos has access to. Is there any way that anyone knows of to change this so the Sonos can actually play the sound?
Thanks.