- OpenHAB 1.8.3
org.openhab.action.xbmc-1.8.3.jar and org.openhab.binding.xbmc-1.8.3.jar in the addons - OpenELEC 6.0.3 with Kodi 15.2
HTTP webserver and “allow other programs/services/etc” activ
openhab.cfg:
############################# XBMC Binding #######################################
xbmc:livingRoom.host=192.168.100.26
xbmc:livingRoom.rsPort=80
xbmc:livingRoom.wsPort=9090
xbmc:livingRoom.username=kodi
xbmc:livingRoom.password=kodi
xbmc:refreshInterval=60000
logback.xml add:
<logger name="org.openhab.action.xbmc" level="TRACE"/>
<logger name="org.openhab.binding.xbmc" level="TRACE"/>
item:
Switch XbmcLiving_PlayPause "Living Play/Pause" (gKodiWZ) { xbmc=">[#livingRoom|Player.PlayPause]", autoupdate="false" }
log:
grep -i xbmc /opt/openhab_1.8.3/logs/openhab.log
2016-11-04 11:36:45.935 [DEBUG] [.a.xbmc.internal.XBMCActivator] - XBMC action has been started.
2016-11-04 11:36:46.205 [DEBUG] [.b.xbmc.internal.XbmcActivator] - XBMC binding has been started
2016-11-04 11:36:46.221 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.221 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.222 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.222 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.223 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.223 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 11:36:46.224 [DEBUG] [b.x.internal.XbmcActiveBinding] - XBMC Refresh Service activate()
2016-11-04 11:36:46.224 [DEBUG] [b.x.internal.XbmcActiveBinding] - XBMC Refresh Service updated()
2016-11-04 11:36:46.232 [INFO ] [.service.AbstractActiveService] - XBMC Refresh Service has been started
2016-11-04 12:01:27.637 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance 'livingRoom' before the binding config has been loaded
2016-11-04 12:01:27.638 [WARN ] [b.x.internal.XbmcActiveBinding] - Received command (ON) for item XbmcLiving_PlayPause but no XBMC connector found for #livingRoom, ignoring
I don’t know whats wrong!