09-11-2016, 11:49:42
Hallo Ollie,
das Binding greift in soweit schon ganz gut. Die Geräte werden erkannt und können auch im Designer oder PaperUI eingebaut und gesteuert werden. Ich habe derzeit einen Zustand der beispielsweise beim Einschalten des Lichts auch die Sonos Anlage startet. Leider verliert das Binding irgendwann die Verbindung und der Zustand wird nicht mehr angesprochen. Anbei habe ich dir das Debug Protokoll eingefügt. Hast du eine Ahnung woran das liegt?
Wenn ich Openhab2 neustarte geht es wieder meistens eine Zeitlang.
2016-11-09 09:03:35.802 [DEBUG] [gysmarthome.internal.InnogyWebSocket] - innogy WebSocket onMessage() - [{"type":"/event/Disconnect","timestamp":"2016-11-09T09:01:55.3888147Z","desc":"/desc/event/Disconnect","Properties":[{"name":"Reason","value":"SessionExpired"}]}]
2016-11-09 09:03:35.803 [DEBUG] [marthome.handler.InnogyBridgeHandler] - onEvent called. Msg: [{"type":"/event/Disconnect","timestamp":"2016-11-09T09:01:55.3888147Z","desc":"/desc/event/Disconnect","Properties":[{"name":"Reason","value":"SessionExpired"}]}]
2016-11-09 09:03:35.813 [ERROR] [marthome.handler.InnogyBridgeHandler] - Error with Event: {}
java.lang.NullPointerException
at org.openhab.binding.innogysmarthome.handler.InnogyBridgeHandler.onEvent(InnogyBridgeHandler.java:446)
at org.openhab.binding.innogysmarthome.internal.InnogyWebSocket.onMessage(InnogyWebSocket.java:62)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessage(JettyAnnotatedEventDriver.java:234)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame(JettyAnnotatedEventDriver.java:226)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
das Binding greift in soweit schon ganz gut. Die Geräte werden erkannt und können auch im Designer oder PaperUI eingebaut und gesteuert werden. Ich habe derzeit einen Zustand der beispielsweise beim Einschalten des Lichts auch die Sonos Anlage startet. Leider verliert das Binding irgendwann die Verbindung und der Zustand wird nicht mehr angesprochen. Anbei habe ich dir das Debug Protokoll eingefügt. Hast du eine Ahnung woran das liegt?
Wenn ich Openhab2 neustarte geht es wieder meistens eine Zeitlang.
2016-11-09 09:03:35.802 [DEBUG] [gysmarthome.internal.InnogyWebSocket] - innogy WebSocket onMessage() - [{"type":"/event/Disconnect","timestamp":"2016-11-09T09:01:55.3888147Z","desc":"/desc/event/Disconnect","Properties":[{"name":"Reason","value":"SessionExpired"}]}]
2016-11-09 09:03:35.803 [DEBUG] [marthome.handler.InnogyBridgeHandler] - onEvent called. Msg: [{"type":"/event/Disconnect","timestamp":"2016-11-09T09:01:55.3888147Z","desc":"/desc/event/Disconnect","Properties":[{"name":"Reason","value":"SessionExpired"}]}]
2016-11-09 09:03:35.813 [ERROR] [marthome.handler.InnogyBridgeHandler] - Error with Event: {}
java.lang.NullPointerException
at org.openhab.binding.innogysmarthome.handler.InnogyBridgeHandler.onEvent(InnogyBridgeHandler.java:446)
at org.openhab.binding.innogysmarthome.internal.InnogyWebSocket.onMessage(InnogyWebSocket.java:62)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessage(JettyAnnotatedEventDriver.java:234)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame(JettyAnnotatedEventDriver.java:226)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)[217:org.openhab.binding.innogysmarthome:2.0.0.201611031725]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]