I have a problem getting the xbmc binding to work - I hope somebody can help.
I am using the 1.8.1 versions of the binding and action jars and am running kodi 15.2 which is, I believe, correctly set up for remote web access - at least I can access it OK using android apps and Chorus.
The relevant parts of my cfg, items and log files are given below.
Thanks for the quick reply. Yes I have added both jars - and have some music playing on kodi. Cannot control kodi either - have tried other properties but all give the same version GET error.
I agree with you that a kodi addon is probably a better way to go and will remove unnecessary polling. There are a few possibilities in this regard but âMQTT Adapterâ appeals the most because the MQTT binding in OpenHAB seems very robustâŠ
I will struggle with the xbmc binding for a bit longer and then give âMQTT Adapterâ a trial run.
In addition to enabling the Web UI under Settings > Web server, make sure you have also enabled the option for âallow remote control by programs on other systemsâ which is under âRemote controlâ. This is needed for the JSON RPC API! And be certain you do not have any other services using the same ports on the same machine as @sam suggested.
While I have this working with 3 KODI instances, the binding is somewhat broken. Many items do not update as they should, and it seems that the KODI API has changed quite a lot since this XBMC Binding was last updated.
The main reason I still use this binding is to auto-kill the lights when a movie starts playing, and dim them up on pause/stop.
It is very simple but very flexible and lets you call all type of scripts. If you do intend to use it, once installed edit the settings.xml file in the userdata folder rather than trying to wrestle with the Kodi interface.
One item in openHAB gets sent updates on events, though you can obviously have more. I also have a `Cinema_Switchâ because I only really want the lights to auto dim when using the projector rather than the tv.
Thanks for your input Mike. I never did get the xbmc binding to work on my system and your comments about it being broken made me give up on it.
Happily I can report that the kodi addon called âMQTT Adapterâ works right out of the box and it is simple to subscribe to the topics from within OpenHAB.
I will take a look at the callback script recommended by Sam but I think I am happy with MQTT Adapter for now.
Now this mqtt for kodi I have to try, what isthe latency like? The xbmc addon seems delayed by 2 secs for me, so very hard to work a volume control
Cheers for the insight guys.
I believe that MQTT Adapter (the kodi addon I am using) does not currently provide volume information in any of its published topics so could not be used for any form of volume control. Generally speaking, latency on my system is about a second (using a RPI as MQTT broker) which is just fine for switching lights and so forth.
N
From: chrishiscox
Sent: 09 February, 2016 3:57 AM
To: namirda@hotmail.com
Subject: [openHAB] [Add-ons/Bindings] XBMC Binding Problem
chrishiscox
February 8
Now this mqtt for kodi I have to try, what isthe latency like? The xbmc addon seems delayed by 2 secs for me, so very hard to work a volume control
Cheers for the insight guys.