[SOLVED] Google Home Goes 'Offline' and audio sink doesn't work

Agreed.

I just want to use the Home as it means 1 less thing cluttering up the lounge! WAF much higher then!

1 Like

Same problem here
Someone manage to solve this issue?

Exactly the same issue here: chromecast:chromecast:xxxxxxxxxxxxxxxxxxx’ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to load media

I’ve several Google Home minis, one Google Home and some Chromecast devices. But everywhere the same issue. Does anyone have an idea, what I could try now?

Nope, nothing happening on this as far as I know.

GitHub issue is still open:

TBH I’m not even sure this is the same issue, but it was the closest I could find.

The issue that bugs me is that if I spin up OH2 on my Mac and run nothing but the Chromecast binding, I CAN get the Home to play back audio as an audio sink. As soon as I use the binding with others, it all goes south.

I might try to reproduce and see at what point adding new bindings cause it to stop working.

1 Like

Oh…good to know. Then i’ll try to reproduce it this way. I’ll start with the Chromecast binding and add the others one by one to find the binding, which is incompatible with the chromecast binding.

I’ve found something. If I leave the callbackUrl empty (it’s optional), it is working with the VoiceRSS service. The issue only appears, when I enter the IP of my openhab-Server. Could you try to reproduce that?

2 Likes

I’ll try and look at it tonight and report back.

It’s working for me. Even with the playSound command. :grinning:

Is that with other bindings installed or stand-alone?

With all my bindings cunfigured. I’ve installed one by one and it was still working at the end. I’ve enteres the callbackUrl at the last step, and with this step i’ve got the issue back. I think that the callbackUrl is only necessary in some scenarios, but makes trouble in this case.

OK, I’ll try tonight. I know Armon suggested changing the callback URL in an earlier post, but that didn’t work for me.

So after some testing, it looks like that works. The time taken for a spoken response seems to be increasing, but it works.

I’ll keep testing and see if it remains stable/ responsive.

Well done @Riza_Aslan

1 Like

Perfect…thanks mate! :slight_smile:

Excellent this worked for me too

This issue still exists in the Nightly. Although, I got an exception after removing the CallBack, this also resolved my no Audio output issue.

A day later and my Groups were Offline again. Now they’re back Online. Pattern still undetermined.

Sigh…

Hi,

Did you solve this issue? I’m having some trouble with my sensors, they go offline and online randomly… and I don’t know why.

As an example:

2018-08-03 12:51:12.089 [hingStatusInfoChangedEvent] - 'mihome:sensor_ht:XXXXXXXXX' changed from ONLINE to OFFLINE

Thanks

Answer was given in post 23 above

i dont know if its the same issue,when i use

say("test test", "voicerss:enGB")

to my google home mini it crashes and forced reboot,when i send the same command to my other chromecasts it works as expected.I am on latest snapshot openhab build.

Hi guys, I’m having the same problem with playsound to chromecast audio. I allready commented out the callback url in chromecast.cfg but when i give command: “smarthome:audio play doorbell.mp3” in openhab console, i hear the cc chirp and then silence. This is what i see in the logs:

2019-02-07 17:34:45.671 [hingStatusInfoChangedEvent] - 'chromecast:audio:myCC' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to load media

2019-02-07 17:34:45.687 [hingStatusInfoChangedEvent] - 'chromecast:audio:myCC' changed from OFFLINE (COMMUNICATION_ERROR): Unable to load media to ONLINE

Any ideas?

EDIT: This is the log output with trace enabled on chromecast binding:

2019-02-07 17:47:33.683 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS null

==> /var/log/openhab2/events.log <==



2019-02-07 17:47:37.008 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:47:37.013 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:47:37.016 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:47:37.019 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:43.832 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS null

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.800 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 2, playbackRate: 1, playerState: IDLE, currentItemId: 2, currentTime: 0.000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: Media{url: /audio/0e862f6b-9860-4dbc-ab2d-812874c38541, contentType: audio/mpeg, duration: null}, repeatMode: REPEAT_OFF, idleReason: null}

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.814 [vent.ItemStateChangedEvent] - currentTime changed from UNDEF to 0.0

2019-02-07 17:47:47.917 [vent.ItemStateChangedEvent] - title changed from UNDEF to Notification

2019-02-07 17:47:47.922 [vent.ItemStateChangedEvent] - statustext changed from Default Media Receiver to Casting: Notification

==> /var/log/openhab2/openhab.log <==

2019-02-07 17:47:47.976 [DEBUG] [omecast.internal.ChromecastCommander] - Failed playing media: Unable to load media

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.982 [hingStatusInfoChangedEvent] - 'chromecast:chromecast:myCC' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to load media

2019-02-07 17:47:48.006 [hingStatusInfoChangedEvent] - 'chromecast:chromecast:myCC' changed from OFFLINE (COMMUNICATION_ERROR): Unable to load media to ONLINE

2019-02-07 17:47:48.024 [vent.ItemStateChangedEvent] - statustext changed from Casting: Notification to Default Media Receiver

2019-02-07 17:47:54.179 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 2, playbackRate: 1, playerState: IDLE, currentItemId: 2, currentTime: 0.000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: Media{url: /audio/0e862f6b-9860-4dbc-ab2d-812874c38541, contentType: audio/mpeg, duration: null}, repeatMode: null, idleReason: ERROR}

2019-02-07 17:47:54.395 [DEBUG] [omecast.internal.ChromecastCommander] - Media player app stopped

2019-02-07 17:47:54.402 [DEBUG] [ast.internal.ChromecastEventReceiver] - Unhandled event type: java.lang.Object@4c8080

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:54.402 [vent.ItemStateChangedEvent] - appName changed from Default Media Receiver to UNDEF

2019-02-07 17:47:54.417 [vent.ItemStateChangedEvent] - appId changed from CC1AD845 to UNDEF

2019-02-07 17:47:54.421 [vent.ItemStateChangedEvent] - statustext changed from Default Media Receiver to UNDEF

2019-02-07 17:47:54.424 [vent.ItemStateChangedEvent] - idling changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2019-02-07 17:47:55.421 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:47:55.423 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:47:55.426 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:57.328 [vent.ItemStateChangedEvent] - appName changed from UNDEF to Backdrop

2019-02-07 17:47:57.358 [vent.ItemStateChangedEvent] - appId changed from UNDEF to E8C28D3C

2019-02-07 17:47:57.370 [vent.ItemStateChangedEvent] - statustext changed from UNDEF to 

2019-02-07 17:47:58.931 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

==> /var/log/openhab2/events.log <==


2019-02-07 17:48:17.052 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:48:17.058 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:48:17.062 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:48:17.066 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:34.467 [DEBUG] [omecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:38.934 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:56.974 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:48:56.977 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:48:56.981 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:48:56.983 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

dont know if this helps (this time with av chromecast as default sink)

Perfect, i had the same problem, solved by leaving the callbackurl empty and setting the default audio sink