01-05-2017, 21:52:37
(01-05-2017, 18:09:09)thefox73 schrieb:(01-05-2017, 00:39:29)ollie schrieb: Grundsätzlich:
- Reines openHAB 2 binding - funktioniert nicht unter openHAB 1. Es funktioniert mit openHAB Version 2.0 und 2.1er Snapshots (zumindest zum heutigen Zeitpunkt).
Hi Ollie,
ich habe meine OH-Installation vor einigen Tagen neu aufgesetzt und dabei das aktuelle openhabian Image genutzt "openHAB 2.0.0-1 (Release Build)"
Damit scheint Dein beta-binding zu funktionieren.
Bis jetzt läuft das binding stabil und mir ist nur ein Fehler in den Logs aufgefallen.
Dieser tritt auf, wenn ich einen Hue-Stripe per WSC2 ein- bzw. ausschalte. Die Aktion wird ausgeführt, aber es erscheint ein Fehler im Log.
Tritt nur beim HUE-Strip auf. Schalte ich eine HUE E27 mit einem anderen WSC2, wird kein Fehler geworfen
Code:18:03:34.299 [DEBUG] [gysmarthome.internal.InnogyWebSocket] - innogy WebSocket onMessage() - [{"type":"device/SHC.RWE/1.0/event/StateChanged","timestamp":"2017-05-01T16:03:31.0820000Z","desc":"/desc/device/SHC.RWE/1.0/event/StateChanged","link":{"value":"/capability/b384ae2247fe4d9c8f180420f07d10ce"},"Properties":[{"name":"LastKeyPressCounter","value":166.0,"lastchanged":"2017-05-01T16:03:30.9690000Z"},{"name":"LastPressedButtonIndex","value":0.0,"lastchanged":"2017-05-01T16:03:30.9700000Z"}]},{"type":"device/SHC.RWE/1.0/event/StateChanged","timestamp":"2017-05-01T16:03:32.8180000Z","desc":"/desc/device/SHC.RWE/1.0/event/StateChanged","link":{"value":"/capability/fc69c8f3caae44118cfaaaa1372847a6"},"Properties":[{"name":"Brightness","value":100.0,"lastchanged":"2017-05-01T16:03:32.7550000Z"},{"name":"Blink","value":false,"lastchanged":"2017-05-01T16:03:32.7550000Z"}]}]
18:03:34.316 [DEBUG] [marthome.handler.InnogyBridgeHandler] - Event found: Type:device/SHC.RWE/1.0/event/StateChanged Capability:/capability/b384ae2247fe4d9c8f180420f07d10ce
18:03:34.323 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed LastKeyPressCounter to 166.0.
18:03:34.327 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed LastPressedButtonIndex to 0.0.
18:03:34.331 [DEBUG] [marthome.handler.InnogyDeviceHandler] - onDeviceStateChanged called with device WS1/3592cd4dc0444605a9ecbbeefb2aa8d4
18:03:34.335 [ERROR] [marthome.handler.InnogyBridgeHandler] - Error with Event: {}
java.lang.IllegalStateException: Could not update status, because callback is missing
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:388)
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:415)
at org.openhab.binding.innogysmarthome.handler.InnogyDeviceHandler.onDeviceStateChanged(InnogyDeviceHandler.java:251)
at org.openhab.binding.innogysmarthome.handler.InnogyDeviceHandler.onDeviceStateChanged(InnogyDeviceHandler.java:639)
at org.openhab.binding.innogysmarthome.handler.InnogyBridgeHandler.onEvent(InnogyBridgeHandler.java:466)
at org.openhab.binding.innogysmarthome.internal.InnogyWebSocket.onMessage(InnogyWebSocket.java:114)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_131]
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessage(JettyAnnotatedEventDriver.java:234)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame(JettyAnnotatedEventDriver.java:226)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)[220:org.openhab.binding.innogysmarthome:2.1.0.201704301903]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
Danke für die Fehlermeldung. Ich komme noch nicht ganz dahinter. Könntest Du mir sowohl von dem WSC2, als auch von dem HUE Strip den Debug-Output vom DeviceStructureManager beim Start des Bindings schicken? Sieht ungefähr so aus:
Code:
2017-04-30 22:53:50.664 [DEBUG] [ernal.manager.DeviceStructureManager] - ====================================
2017-04-30 22:53:50.665 [DEBUG] [ernal.manager.DeviceStructureManager] - Device WSC2:Wandsender Test (32214feb11a74949b573346f1a380729) loaded.
2017-04-30 22:53:50.666 [DEBUG] [ernal.manager.DeviceStructureManager] - > CAP: WSC2 (2dca5b6a3e5a419d8f6f4a8f05ed8310)
2017-04-30 22:53:50.667 [DEBUG] [ernal.manager.DeviceStructureManager] - >> CAP-State: LastKeyPressCounter -> 140.0
2017-04-30 22:53:50.668 [DEBUG] [ernal.manager.DeviceStructureManager] - >> CAP-State: LastPressedButtonIndex -> 1.0
2017-04-30 22:53:50.668 [DEBUG] [ernal.manager.DeviceStructureManager] - ====================================
Eigentlich habe ich "Fremdhersteller"-Geräte rausgefiltert und wundere mich, dass der HUE-Strip hier anscheinend als "WS1" benannt auftaucht.
Danke!