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]"}
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?
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.