Hello everyone, I’m facing some issues with my Chromecast setup in OpenHAB 3. I’ve recently migrated from OH2.5.11 on a Raspberry Pi to OH3 on a Synology DS920+ using Docker. While most functionalities work, I’m having trouble with the playSound and say commands. Here’s what’s happening:
When I try to use playSound("chromecast:chromecast:5aaf8e9ecbf134e1ab25eca122ee38b4", "doorbell2.mp3") or say("Die Rolladen gehen in " + WaitTime.toString + " Minuten herunter!", "voicerss:deDE", "chromecast:chromecast:5aaf8e9ecbf134e1ab25eca122ee38b4"), I get the following log entries:
2020-12-28 09:45:01.927 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘CastGH_title’ changed from UNDEF to Notification
2020-12-28 09:45:02.202 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘chromecast:chromecast:5aaf8e9ecbf134e1ab25eca122ee38b4’ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to load media
2020-12-28 09:45:02.230 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘CastGH_title’ changed from Notification to UNDEF
2020-12-28 09:45:02.262 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘chromecast:chromecast:5aaf8e9ecbf134e1ab25eca122ee38b4’ changed from OFFLINE (COMMUNICATION_ERROR): Unable to load media to ONLINE
Interestingly, playStream with a static address still works, and changing the volume on my Google Home Minis also works. I’ve tried different voice services (VoiceRSS and MaryTTS) and various Callback URLs, but nothing seems to resolve the issue.
I suspect the problem might be related to the new Docker environment or the migration to OH3. I’ve mounted the necessary shared folders (/conf, /userdata, and /addons) from the DS920+ into the container, and the sound file doorbell2.mp3 is in /conf/sounds. However, I’m not entirely sure if the file path is correctly accessible within the Docker container.
Has anyone else encountered similar issues or has any suggestions on how to troubleshoot this further? I’d greatly appreciate any insights or possible solutions. Thanks in advance for your help!