Chromecast audio group connection refused error

hi, im running openhab 2.5.1, im getting connection refused on chromecast audio group thing only, the other chromecast things are OK.

Thing chromecast:chromecast:Ghome_LR     "Google home Livingroom"     [ ipAddress="", port=8009]
Thing chromecast:chromecast:Ghome_BR     "Google home Bedroom"        [ ipAddress="", port=8009]
Thing chromecast:audiogroup:Ghome_Group  "Audio group"                [ ipAddress="", port=42648]
21:44:30.159 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'music_track' received command 2
21:44:30.178 [DEBUG] [romecast.internal.ChromecastCommander] - Failed playing media: Connection refused (Connection refused)
21:44:39.656 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:44:39.671 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
Failed playing media: Connection refused (Connection refused)21:44:49.695 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:44:49.714 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:44:59.735 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:44:59.753 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:45:09.775 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:45:09.789 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:45:19.810 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:45:19.823 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:45:29.841 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:45:29.854 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:45:39.876 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:45:39.888 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection
21:45:49.911 [DEBUG] [romecast.internal.ChromecastScheduler] - Scheduling connection
21:45:49.928 [DEBUG] [romecast.internal.ChromecastScheduler] - Canceling connection


228 │ Active │  80 │ 2.5.1                   │ org.openhab.binding.chromecast

i have to restart the binding every time… can u help plz

Try the 2.5.2 snapshot.

Uninstall the binding and place the jar file in usr/share/openhab2/addons and restart OH.

which one?

org.openhab.binding.chromecast-2.5.2-SNAPSHOT-sources.jar   09-Feb-2020 16:18  24.16 KB
org.openhab.binding.chromecast-2.5.2-SNAPSHOT.jar           09-Feb-2020 16:18  749.80 KB

The snapshot.jar file NOT the sources.jar.

i got this:

22:10:19.874 [WARN ] [org.apache.felix.fileinstall         ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.chromecast-2.5.2-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.chromecast [255]
  Unresolved requirement: Import-Package: com.fasterxml.jackson.annotation; version="[2.9.0,3.0.0)"

        at org.eclipse.osgi.container.Module.start( ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start( ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle( [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles( [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess( [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process( [bundleFile:3.6.4]
        at [bundleFile:3.6.4]

can u help me resolve

Try using the openhabian-config tool and run “needed packages”.

If the 2.5.2 jar file continues to give that error then remove the jar file and reinstall via PaperUI and see this link:

i read this already… the port is correct… im using the same tool to get the port

From the console what is the output of:

bundle:list -s |grep chrome

255 x Active x  80 x      x org.openhab.binding.chromecast
259 x Active x  80 x 2.5.1                   x org.openhab.binding.chromecast

i reinstalled the old one btw

You didn’t uninstall the 2.5.1 version before using the jar file?

You can try using the console to uninstall 2.5.1. and restart the chromecast binding.

sorry i forget to mention, i reinstalled 2.5.1 again… but i did already what u told me to do, uninstall the old one and put the new one in addon folder

Nothing similar in output like:

Active │ 80 │ 0.11.0 │ su.litvak.chromecast.api-v2


I’m out of ideas but you can check github or file an issue here.

guess what, i installed the audio group thing from paper UI and its online now, the audio group IP keeps changing between my two google mini… i have two google mini ( & (… when i first installed the thing using the thing file, the primary ip for audio group thing was (, now when i installed it from paper UI, it took ( ip… port is the same… i hope if i kept it installed from paper UI, it will keep the sync… i think this is how audio group suppose to work, it will take one of the google mini’s IP as a primary one…

You may what to set those IP address as static or reserved in your router to help with keeping in sync.

they are static, but the audio group thing keep switching IP’s between the speakers IP’s included in the group… anyway, thanks alot

jumping on this thread :wink:

I’m facing the same issue since years. Would love to use my audiogroup as doorbell. Is there any permanent fix for this?

1 Like