Xbmc binding stopped reporting for one of the units

Hi Everyone,

I had been using xbmc binding with openhab for almost a year now. i have two xbmc running, one in the living room and one in the bedroom.

last month, the bedroom one has stopped responding. I have confirmed that the json service is running fine by accessing it with my web browser.

here is my config, sitemap and item code

xbmc:living.host=192.168.1.123
xbmc:living.rsPort=8080
xbmc:living.wsPort=9090
xbmc:living.username=xbmc
xbmc:living.password=xbmc

xbmc:bedroom.host=192.168.1.105
xbmc:bedroom.rsPort=8080
xbmc:bedroom.wsPort=9090
xbmc:bedroom.username=kodi
xbmc:bedroom.password=kodi

Frame label=“Living Room XBMC” {
Text item=XbmcLiving_State label=“State [%s]”
Text item=XbmcLiving_Title label=“Title [%s]” visibility=[XbmcLiving_State==Play, XbmcLiving_State==Pause]
Text item=XbmcLiving_ShowTitle label=“Show [%s]” visibility=[XbmcLiving_State==Play, XbmcLiving_State==Pause]
Switch item=XbmcLiving_PlayPause label=“Play” icon=“play” mappings=[ON=“Play”] visibility=[XbmcLiving_State==Pause]
Switch item=XbmcLiving_PlayPause label=“Pause” icon=“pause” mappings=[ON=“Pause”] visibility=[XbmcLiving_State==Play]
Switch item=XbmcLiving_Stop label=“Stop” mappings=[ON=“Stop”] visibility=[XbmcLiving_State==Play, XbmcLiving_State==Pause]

    }

    Frame label="Bedroom XBMC" {
            Text item=XbmcBedroom_State label="State [%s]"
            Text item=XbmcBedroom_Title label="Title [%s]" visibility=[XbmcBedroom_State==Play, XbmcBedroom_State==Pause]
            Text item=XbmcBedroom_ShowTitle label="Show [%s]" visibility=[XbmcBedroom_State==Play, XbmcBedroom_State==Pause]
            Switch item=XbmcBedroom_PlayPause label="Play" icon="play" mappings=[ON="Play"] visibility=[XbmcBedroom_State==Pause]
            Switch item=XbmcBedroom_PlayPause label="Pause" icon="pause" mappings=[ON="Pause"] visibility=[XbmcBedroom_State==Play]
            Switch item=XbmcBedroom_Stop label="Stop" mappings=[ON="Stop"] visibility=[XbmcBedroom_State==Play, XbmcBedroom_State==Pause]

}

String XbmcLiving_State “Living State [%s]” {xbmc="<[#living|Player.State]"}
String XbmcLiving_Title “Living Title [%s]” {xbmc="<[#living|Player.Title]"}
String XbmcLiving_ShowTitle “Living Show [%s]” {xbmc="<[#living|Player.ShowTitle]"}
Switch XbmcLiving_PlayPause “Living Play/Pause” {xbmc=">[#living|Player.PlayPause]", autoupdate=“false”}
Switch XbmcLiving_Stop “Living Stop” {xbmc=">[#living|Player.Stop]", autoupdate=“false”}
String XbmcLiving_Notify “Living Notify [%s]” {xbmc="<[#living|GUI.ShowNotification]", autoupdate=“false”}

String XbmcBedroom_State “Bedroom State [%s]” {xbmc="<[#bedroom|Player.State]"}
String XbmcBedroom_Title “Bedroom Title [%s]” {xbmc="<[#bedroom|Player.Title]"}
String XbmcBedroom_ShowTitle “Bedroom Show [%s]” {xbmc="<[#bedroom|Player.ShowTitle]"}
Switch XbmcBedroom_PlayPause “Bedroom Play/Pause” {xbmc=">[#bedroom|Player.PlayPause]", autoupdate=“false”}
Switch XbmcBedroom_Stop “Bedroom Stop” {xbmc=">[#bedroom|Player.Stop]", autoupdate=“false”}
String XbmcBedroom_Notify “Bedroom Notify [%s]” {xbmc="<[#bedroom|GUI.ShowNotification]", autoupdate=“false”}

Check the ports - looks like the bedroom might be a new version of Kodi - the default web server port may well have changed?

but when I open 192.168.1.105:8080 in my web browser it works fine.

Since the reinstall of openhab, I have not been able to use the connect to xbmc on both my tvs.
the port 8080 is accessible via the web browser but I am not sure about the 9090 port.

These are the settings enabled in kodi, webserver is on with allow remove control via http. remote control has both the options active to control by program on this system as well as other systems.

edit: rebooted raspberry pi, openhab and both the tv boxes and it seems to be working now.

Hi

my ports seem to be correct - but i get an error message in the log file:

18:46:41.218 [DEBUG] [binding.xbmc.rpc.XbmcConnector:191  ] - [192.168.1.20]: Websocket opened
18:46:42.586 [ERROR] [enhab.binding.xbmc.rpc.RpcCall:153  ] - Error handling POST response from XBMC
org.openhab.binding.xbmc.rpc.RpcCall$RpcException: {code=-32601, message=Method not found.}
	at org.openhab.binding.xbmc.rpc.RpcCall$1.onCompleted(RpcCall.java:145) ~[bundlefile:na]
	at org.openhab.binding.xbmc.rpc.RpcCall$1.onCompleted(RpcCall.java:1) ~[bundlefile:na]
	at com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:63) ~[async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:292) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyResponseFuture.done(NettyResponseFuture.java:319) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.markAsDone(NettyAsyncHttpProvider.java:1521) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.finishUpdate(NettyAsyncHttpProvider.java:1538) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.access$2600(NettyAsyncHttpProvider.java:158) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider$HttpProtocol.handle(NettyAsyncHttpProvider.java:2188) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(NettyAsyncHttpProvider.java:1220) [async-http-client-1.8.4.jar:na]
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:142) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.0.Final.jar:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0]
	at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
18:46:42.581 [ERROR] [enhab.binding.xbmc.rpc.RpcCall:153  ] - Error handling POST response from XBMC
org.openhab.binding.xbmc.rpc.RpcCall$RpcException: {code=-32601, message=Method not found.}
	at org.openhab.binding.xbmc.rpc.RpcCall$1.onCompleted(RpcCall.java:145) ~[bundlefile:na]
	at org.openhab.binding.xbmc.rpc.RpcCall$1.onCompleted(RpcCall.java:1) ~[bundlefile:na]
	at com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:63) ~[async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:292) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyResponseFuture.done(NettyResponseFuture.java:319) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.markAsDone(NettyAsyncHttpProvider.java:1521) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.finishUpdate(NettyAsyncHttpProvider.java:1538) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.access$2600(NettyAsyncHttpProvider.java:158) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider$HttpProtocol.handle(NettyAsyncHttpProvider.java:2188) [async-http-client-1.8.4.jar:na]
	at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(NettyAsyncHttpProvider.java:1220) [async-http-client-1.8.4.jar:na]
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:142) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.0.Final.jar:na]
	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.0.Final.jar:na]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0]
	at java.lang.Thread.run(Thread.java:744) [na:1.8.0]

I only have 2 simple items defined:

String KodiState	"Kodi State [%s]"  { xbmc="<[#livingRoom|Player.State]" }
Switch KodiPlayPause	"Kodi Pause [%s]"  { xbmc=">[#livingRoom|Player.PlayPause]", autoupdate="false" }

thx for assistance

Karsten