Xbmc binding error 'no XBMC connector found

Hello,

I’m pretty new at Openhab but i’m getting the hang of it.

I’m running the latest openhab2 beta

I’m trying to use the XBMC binding but I don’t get it to work.

I installed openHAB XBMC Binding 1.9.0.b4 & openHAB Action 1.9.0.b.4.
I don’t have created the item on the sitemap yet, cause I like test before I add it to my sitemap using the Karaf Console.

I use the Yatse remote on Android and everything works perfectly fine, So I’m pretty sure the problem is not in kodi,
Firewalls are off and remote control of Kodi is also enabled like mensioned in the xbmc binding.

Items:
String kodistatus { xbmc="<[#kodi|Player.State]"}
String radio {xbmc=">[#kodi|Player.Open]"}

/conf/services/xbmc.cfg
######################## XBMC Configuration ###########################

Hostname / IP address of your XBMC host

kodi.host=192.168.0.10

Port number for the json rpc service (optional, defaults to 8080)

kodi.rsPort=8090 #my kodi is running on 8090 instead of 8080, and I can access the web interface of kodi

Port number for the web socket service (optional, defaults to 9090)

kodi.wsPort=9090

Username to connect to XBMC. (optional, defaults to xbmc)

kodi.username=media

Password to connect to XBMC. (optional, defaults to xbmc)

kodi.password=mypassword

Refresh interval. Global setting. (optional, defaults to 60000ms = 1 minute)

refreshInterval=60000

When I use the following command in the Karaf console:
send radio “http://icecast.omroep.nl/3fm-bb-mp3

I get in the log:
2016-11-18 21:16:06.221 [WARN ] [ding.xbmc.internal.XbmcActiveBinding] - Received update (http://icecast.omroep.nl/3fm-bb-mp3) for item radio but no XBMC connector found for #kodi, ignoring

Not sure where to go from here…
Can someone help me out please?

1 Like

Did you figured it out? I have same problem on same binding version.

It used to work in a previous build… switched to the latest oh2 build and surprise. It spits an error about unable to read json response from xbmc

I also had problems with the binding and Kodi v16, so i use a workaround that may also help you. In my case I use my IR Remote to control Kodi via openhab.

Rule:

rule "kodi_ir_control"
when
Item Kodi_Control received update
then
switch Kodi_Control.state.toString {
case “KEY_Up” : sendHttpPostRequest(“http://192.168.1.10:8080/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“Input.Up”}’)
case “KEY_Down” : sendHttpPostRequest(“http://192.168.1.10:8080/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“Input.Down”}’)
case “KEY_Left” : sendHttpPostRequest(“http://192.168.1.10:8080/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“Input.Left”}’)
case “KEY_Right” : sendHttpPostRequest(“http://192.168.1.10:8080/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“Input.Right”}’)
case “KEY_Enter” : sendHttpPostRequest(“http://192.168.1.10:8080/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“Input.Select”}’)
[… and some more …]
end

Item:

String Kodi_Control “Kodi Steuerung [%s]” { tcp=">[localhost:8700:JS(lirc-key.js)]" }
-> behind that there is a fully configured lirc setup with a JS transformation and tcp to receive the keystrokes

However you can control kodi and receive a status with
sendHttpPostRequest(“http://your ip:your port/jsonrpc?request=”, “application/json”, ‘{“jsonrpc”:“2.0”,“id”:1,“method”:“xxx”}’)
Here you can find all commands you can fill in for the xxx

Hy Andi, thanks for the suggestion, i mainly use xbmc binding (or used to…) to see Kodi state, eg stop / playing / paused etc and secondary to play some online radios. Don’t have any problems controlling Kodi over HDMI CEC.