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.
Limitations:
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.
Installation:
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 Settings → Add-ons → Install from zip file -> Navigate to the ZIP file and install it. The add-on depends on the requests add-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 Server Address and Sitemap options (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 OK button!!!) the server address once before the add-on is able to get the correct list from your openHAB server.
I downloaded v1.01 and installed under KODI Jarvis RC3.
==> addon error
I had to fix addon.xml imports. Also I installed manually the OpenELEC settings addon and the Mimic skin for Kodi.
After that it works really good. All I saw were some glitches due to font size and skin behaviour.
Thanks for the update. Could you please send me or check’in the updated
file?
Regarding the display glitches: Currently I rely on the default Confluence
skin definitions. But as these may change from release to release it would
be better to copy the definitions to have a stable layout.
This is pretty cool and I’ll look to try it out this weekend as well.
Can anyone maybe confirm if you can view any security or other IP based camera’s within Kodi? I have a couple of Foscam’s currently setup in Openhab and be kinda neat to see them through Kodi.
@ptmuldoon - while this isn’t OpenHAB specific, you might want to have a look at this addon for XBMC/KODI. Pretty cool to have it automatically popup the video feed in KODI when motion is detected!
20:18:47 221.989700 T:1958003248 DEBUG: CAddonInstaller: installing from zip '/home/osmc/plugins/script.module.openhab_V1.0.1.zip’
20:18:47 221.998886 T:1491071984 DEBUG: CAddonInstallJob[script.module.openhab]: requires xbmc.gui version 5.3.0 which is not available
20:18:47 221.999725 T:1491071984 ERROR: CAddonInstallJob[script.module.openhab]: Die Abhängigkeit auf xbmc.gui in Version 5.3.0 konnte nicht aufgelöst werden.
20:18:47 222.006149 T:1958003248