Chromecast binding - Connection times out every 2 minutes

Running openHAB 3.0.2 on Raspberry Pi 3

My Chromecast binding works fine, however every 2 minutes I get an error that the connection timed out, and right after that that the connection has been established again. This very much clutters my logs, so I would like to know if there’s a way to remedy this:

Example log:

2021-05-02 14:15:28.304 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out)

2021-05-02 14:15:31.505 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out) to ONLINE

2021-05-02 14:17:51.664 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out)

2021-05-02 14:17:53.063 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out) to ONLINE

2021-05-02 14:20:15.024 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out)

2021-05-02 14:20:15.913 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out) to ONLINE

2021-05-02 14:22:38.384 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out)

2021-05-02 14:22:46.244 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:chromecast:karpourCast' changed from OFFLINE (COMMUNICATION_ERROR): Connection timed out (Connection timed out) to ONLINE
1 Like

I’m running: openHAB 3.1.0.M4 Rasp 4

Also seeing occasional messages like these:

2021-06-03 10:51:07.341 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:audiogroup:AllSpeakers' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): Interrupted while waiting for response

2021-06-03 10:51:17.502 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'chromecast:audiogroup:AllSpeakers' changed from OFFLINE (COMMUNICATION_ERROR): Interrupted while waiting for response to ONLINE

and other variations.

Yep, that happens a lot. It’s related to how Chromecasts work.

Easiest thing to do is to set the Chromecast binding to only report warnings or errors. You can place this in log4j2.xml at the very end, right before </Loggers>.

<!-- Filters known issues of Chromecast -->
<Logger level=ERROR name=su.litvak.chromecast.api.v2.Channel/>
1 Like

Excellent - Thanks Russ!