I created an user interface add-on for the multi platform media center SW Kodi (formerly XBMC) to control an openHAB instance from within Kodi. You can watch the state of your openHAB items, get updates for items that have changed, and set the state of items. It uses the openHAB REST API to get/set items and widgets states.
Updates of the top level page (a.k.a. homepage) don’t work - probably due to a openHAB issue (see also notes in https://github.com/openhab/openhab/wiki/REST-API). I have been thinking about a workaround but as I don’t need it I didn’t implement that so far.
Download latest zip file from https://github.com/mampfes/script.module.openhab/releases and copy it into a path that is accessible from your Kodi box. In Kodi open
Install from zip file-> Navigate to the ZIP file and install it. The add-on depends on the
requestsadd-on which should be automatically installed if it is missing on your machine so far.
Open the add’on’s settings dialog and adjust at least the
Sitemapoptions (see screenshot below). Note that you can also use the
Select Sitemap...action to get a list of sitemap’s on your openHAB server, but you have to enter and store (using the
OKbutton!!!) the server address once before the add-on is able to get the correct list from your openHAB server.
The sources can be found here: https://github.com/mampfes/script.module.openhab
Screenshot using openHAB’s demo configuration:
Please let me know if you interrested in this add-on.