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)