Hey,
I have the xbmc action and binding installed. version 1.8.3.
In my openhab.config file I have the following…
######################## XBMC Binding ###########################
Hostname / IP address of your XBMC host
xbmc:livingRoom.host=192.168.X.X
Port number for the json rpc service (optional, defaults to 8080)
xbmc:livingRoom.rsPort=8080
Port number for the web socket service (optional, defaults to 9090)
xbmc:livingRoom.wsPort=9090
Username to connect to XBMC. (optional, defaults to xbmc)
xbmc:livingRoom.username=kodi
Password to connect to XBMC. (optional, defaults to xbmc)
xbmc:livingRoom.password=kodi
(ONLY FROM V1.9 onwards)
Refresh interval. Global setting. (optional, defaults to 60000ms = 1 minute)
#xbmc:refreshInterval=60000
IP is blanked out but actual ip is correct in the config file.
Items file is as shown,
String kodiLivingRoomTV_State “Living Room State [%s]” { xbmc="<[#livingRoom|Player.State]" }
and I see the following in the log.
2016-11-10 15:38:37.726 [DEBUG] [.b.xbmc.internal.XbmcActivator] - XBMC binding has been started
2016-11-10 15:38:37.918 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance ‘livingRoom’ before the binding config has been loaded
2016-11-10 15:38:37.918 [INFO ] [nhab.model.script.BedLampTimer] - Bedroom Lamp Timer: Begin
2016-11-10 15:38:37.922 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance ‘livingRoom’ before the binding config has been loaded
2016-11-10 15:38:37.926 [TRACE] [b.x.internal.XbmcActiveBinding] - Attempting to access the named instance ‘livingRoom’ before the binding config has been loaded
2016-11-10 15:38:37.931 [DEBUG] [b.x.internal.XbmcActiveBinding] - XBMC Refresh Service activate()
2016-11-10 15:38:37.938 [DEBUG] [b.x.internal.XbmcActiveBinding] - XBMC Refresh Service updated()
2016-11-10 15:38:37.939 [INFO ] [.service.AbstractActiveService] - XBMC Refresh Service has been started
I have lebreelec running with kodi jarvis, with all external services enabled. Port is definiatly correct for the webservice as i can see its running on 8080 and the offical kodi remote connects fine on this port.
I’m not getting anything populated in the state even though kodi is playing something.
Can anyone suggest what I’ve done wrong?
Many Thanks,
Chris