[Solved] Kodi binding thing online status not working anymore

Hey guys,

I noticed that the kodi binding keeps switching from online to offline.

2020-03-16 08:53:48.704 [hingStatusInfoChangedEvent] - 'kodi:kodi:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): No connection established to ONLINE
==> /var/log/openhab2/openhab.log <==
2020-03-16 08:53:48.712 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":552,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:53:49.135 [DEBUG] [odi.internal.protocol.KodiConnection] - Received unknown method: Other.check_settings
2020-03-16 08:53:49.727 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":553,"jsonrpc":"2.0","result":{"muted":false,"volume":100}}
2020-03-16 08:53:49.740 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":554,"jsonrpc":"2.0","result":{"canhibernate":false,"canreboot":true,"canshutdown":true,"cansuspend":false}}
2020-03-16 08:53:53.153 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:53:55.372 [DEBUG] [odi.internal.protocol.KodiConnection] - Received unknown method: Other.startup_requests_module
2020-03-16 08:53:56.144 [DEBUG] [odi.internal.protocol.KodiConnection] - Received unknown method: AudioLibrary.OnScanStarted
==> /var/log/openhab2/events.log <==
2020-03-16 08:53:56.165 [hingStatusInfoChangedEvent] - 'kodi:kodi:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): No connection established
==> /var/log/openhab2/openhab.log <==
2020-03-16 08:53:58.673 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.33:9090/jsonrpc
2020-03-16 08:54:03.162 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:08.679 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.33:9090/jsonrpc
==> /var/log/openhab2/events.log <==
2020-03-16 08:54:08.705 [hingStatusInfoChangedEvent] - 'kodi:kodi:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): No connection established to ONLINE
==> /var/log/openhab2/openhab.log <==
2020-03-16 08:54:08.714 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":555,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:54:09.725 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":556,"jsonrpc":"2.0","result":{"muted":false,"volume":100}}
2020-03-16 08:54:09.751 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":557,"jsonrpc":"2.0","result":{"canhibernate":false,"canreboot":true,"canshutdown":true,"cansuspend":false}}
2020-03-16 08:54:13.170 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:18.695 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":558,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:54:23.175 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:28.713 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":559,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:54:33.183 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:38.728 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":560,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:54:43.189 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:48.743 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":561,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:54:53.196 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:54:58.760 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":562,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:55:03.204 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:55:08.775 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":563,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:55:13.214 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:55:18.791 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":564,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}
2020-03-16 08:55:23.219 [DEBUG] [odi.internal.protocol.KodiConnection] - checkConnection: try to connect to Kodi ws://192.168.178.38:9090/jsonrpc
2020-03-16 08:55:28.811 [DEBUG] [i.internal.protocol.KodiClientSocket] - callMethod returns: {"id":565,"jsonrpc":"2.0","result":{"version":{"major":18,"minor":5,"revision":"cf5ad23bf0c35c78e81f1ae65e47514cbd7e1aec","tag":"stable"}}}

Kodi itself works as usual.
Any idea what could be causing this or how to investigate further?

Alex

Sorry to be bumping the thread again, unfortunately I still haven’t been able to fix this.
I got a 2nd Kodi running that’s set up in the exact same way in OH. The only difference device-wise is that the working one is running on a Pi (LibreELEC) and the one that keeps switching between off- and online is on an Odroid (CoreELEC).

Thing setup:

Thing kodi:kodi:Wohnzimmer "Kodi" @ "Wohnzimmer" [ipAddress="192.168.178.33", port=9090, httpPort=8080]

Item Setup:

Group gKodiLivingroom "Kodi" (gHomeCinema)
Player KodiPlayer "Kodi Player" (gKodiLivingroom) {channel="kodi:kodi:Wohnzimmer:control", alexa="PlaybackController.playback, PlaybackStateReporter.playbackState"}

Any feedback is highly appreciated.

Oh boy… got this solved! A Sonoff device had the same IP (wireless) as the Kodi device (LAN). Changed that and now it’s working again.