Openhab2 & kodi - thing stays offline

Hello!

I’m kind of lost here. Can not get the Kodi binding to work, searched everything everywhere …

I’m on rpi 3 (ip 192.168.1.111), everything updated, on latest version, running OH2 and Kodi.

Openhab2:

  • version 2.1.0,
  • no other issues than Kodi binding.
    Kodi:
  • version 17.3
  • dlna/upnp enabled, port set to 8090
  • allow remote on this/on other enabled
  • web interface (port 8090) working OK, also android app OK

If I install Kodi bindng to Openhab2 in paper UI it gets installed, but it does not get auto-detected. If i add Kodi manually with ip 192.168.1.111 and 8090 the item stays OFFLINE

nothing usable in the logs …
openhab.log
2017-07-21 09:15:26.393 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled ‘openhab-binding-kodi’

events.log
2017-07-21 09:16:52.699 [hingStatusInfoChangedEvent] - ‘kodi:kodi:e335211f’ changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2017-07-21 09:16:52.733 [ExtensionEvent ] - Extension ‘binding-kodi’ has been installed.
2017-07-21 09:16:53.741 [hingStatusInfoChangedEvent] - ‘kodi:kodi:e335211f’ changed from INITIALIZING to OFFLINE

Anyone having similar issue or any suggestion? Not ready yet to make a new clean installation …

Edit: with some more DEBUG log …

10:14:36.291 [DEBUG] [ome.core.thing.internal.ThingManager] - Thing handler factory ‘KodiHandlerFactory’ added
10:14:36.298 [DEBUG] [ome.core.thing.internal.ThingManager] - Calling ‘KodiHandlerFactory.registerHandler()’ for thing ‘kodi:kodi:e335211f’.
10:14:36.353 [DEBUG] [ome.core.thing.internal.ThingManager] - Configuration of thing kodi:kodi:e335211f needs [ipAddress, port], has [ipAddress, port].
10:14:36.357 [DEBUG] [ome.core.thing.internal.ThingManager] - Calling initialize handler for thing ‘kodi:kodi:e335211f’ at ‘org.openhab.binding.kodi.handler.KodiHandler@cb6776’.
10:14:36.363 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘kodi:kodi:e335211f’ changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
10:14:36.405 [INFO ] [smarthome.event.ExtensionEvent ] - Extension ‘binding-kodi’ has been installed.
10:14:37.416 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘kodi:kodi:e335211f’ changed from INITIALIZING to OFFLINE

Hi jankoivan,

the Kodi binding is based on the JSON-RPC API of Kodi. It doesn’t use the webinterface. The default port for accessing the JSON-RPC API is 9090. Could you please check if the binding works using port 9090?

Perfect … thanks! Works like a charm …
Still don’t understand, why auto-discovery did not find it …

Thank you once again.

Glad to hear. No problem.

I am not an UPnP professional but as far as I know the network / router has to support it, too. Sometimes it is disabled by default. In Kodi you only have to enable the “Allow control of Kodi via UPnP” configuration.

1 Like