{"action":"created","issue":{"url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/9","repository_url":"https://api.github.com/repos/ollie-dev/openhab2-addons","labels_url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/9/comments","events_url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/9/events","html_url":"https://github.com/ollie-dev/openhab2-addons/issues/9","id":194790631,"number":9,"title":"Connecting devices throws null pointer exception - state not available?","user":{"login":"ollie-dev","id":7187675,"avatar_url":"https://avatars.githubusercontent.com/u/7187675?v=3","gravatar_id":"","url":"https://api.github.com/users/ollie-dev","html_url":"https://github.com/ollie-dev","followers_url":"https://api.github.com/users/ollie-dev/followers","following_url":"https://api.github.com/users/ollie-dev/following{/other_user}","gists_url":"https://api.github.com/users/ollie-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie-dev/subscriptions","organizations_url":"https://api.github.com/users/ollie-dev/orgs","repos_url":"https://api.github.com/users/ollie-dev/repos","events_url":"https://api.github.com/users/ollie-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ollie-dev/received_events","type":"User","site_admin":false},"labels":[{"id":482295896,"url":"https://api.github.com/repos/ollie-dev/openhab2-addons/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"ollie-dev","id":7187675,"avatar_url":"https://avatars.githubusercontent.com/u/7187675?v=3","gravatar_id":"","url":"https://api.github.com/users/ollie-dev","html_url":"https://github.com/ollie-dev","followers_url":"https://api.github.com/users/ollie-dev/followers","following_url":"https://api.github.com/users/ollie-dev/following{/other_user}","gists_url":"https://api.github.com/users/ollie-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie-dev/subscriptions","organizations_url":"https://api.github.com/users/ollie-dev/orgs","repos_url":"https://api.github.com/users/ollie-dev/repos","events_url":"https://api.github.com/users/ollie-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ollie-dev/received_events","type":"User","site_admin":false},"assignees":[{"login":"ollie-dev","id":7187675,"avatar_url":"https://avatars.githubusercontent.com/u/7187675?v=3","gravatar_id":"","url":"https://api.github.com/users/ollie-dev","html_url":"https://github.com/ollie-dev","followers_url":"https://api.github.com/users/ollie-dev/followers","following_url":"https://api.github.com/users/ollie-dev/following{/other_user}","gists_url":"https://api.github.com/users/ollie-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie-dev/subscriptions","organizations_url":"https://api.github.com/users/ollie-dev/orgs","repos_url":"https://api.github.com/users/ollie-dev/repos","events_url":"https://api.github.com/users/ollie-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ollie-dev/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ollie-dev/openhab2-addons/milestones/1","html_url":"https://github.com/ollie-dev/openhab2-addons/milestone/1","labels_url":"https://api.github.com/repos/ollie-dev/openhab2-addons/milestones/1/labels","id":2196142,"number":1,"title":"beta1","description":"","creator":{"login":"ollie-dev","id":7187675,"avatar_url":"https://avatars.githubusercontent.com/u/7187675?v=3","gravatar_id":"","url":"https://api.github.com/users/ollie-dev","html_url":"https://github.com/ollie-dev","followers_url":"https://api.github.com/users/ollie-dev/followers","following_url":"https://api.github.com/users/ollie-dev/following{/other_user}","gists_url":"https://api.github.com/users/ollie-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie-dev/subscriptions","organizations_url":"https://api.github.com/users/ollie-dev/orgs","repos_url":"https://api.github.com/users/ollie-dev/repos","events_url":"https://api.github.com/users/ollie-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ollie-dev/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2016-12-14T10:17:04Z","updated_at":"2016-12-27T12:18:25Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-10T20:07:37Z","updated_at":"2016-12-27T12:18:25Z","closed_at":"2016-12-27T12:18:25Z","body":"```\r\n10:24:13.393 [DEBUG] [gysmarthome.internal.InnogyWebSocket] - innogy WebSocket onMessage() - [{\"type\":\"device/SHC.RWE/1.0/event/StateChanged\",\"timestamp\":\"2016-12-09T09:24:06.7520000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/StateChanged\",\"link\":{\"value\":\"/device/7a895f5ad58745fd9edf75cf3cf7da76\"},\"Properties\":[{\"name\":\"IsReachable\",\"value\":true,\"lastchanged\":\"2016-12-09T09:24:06.7240000Z\"},{\"name\":\"DeviceConfigurationState\",\"value\":\"Complete\",\"lastchanged\":\"2016-12-06T16:09:33.3870000Z\"},{\"name\":\"DeviceInclusionState\",\"value\":\"Included\",\"lastchanged\":\"2016-12-06T16:09:32.0220000Z\"},{\"name\":\"UpdateState\",\"value\":\"UpToDate\",\"lastchanged\":\"0001-01-01T00:00:00.0000000Z\"},{\"name\":\"FirmwareVersion\",\"value\":\"1.7\",\"lastchanged\":\"2016-12-09T09:24:06.7510000Z\"}]},{\"type\":\"device/SHC.RWE/1.0/event/MessageDeleted\",\"timestamp\":\"2016-12-09T09:24:07.0270000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/MessageDeleted\",\"link\":{\"value\":\"/message/d7cefe8f085241d0bb301e06d3a3e210\"}},{\"type\":\"device/SHC.RWE/1.0/event/StateChanged\",\"timestamp\":\"2016-12-09T09:24:07.7450000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/StateChanged\",\"link\":{\"value\":\"/capability/ad90047515274f47a82c6f38e460c752\"},\"Properties\":[{\"name\":\"OnState\",\"value\":false,\"lastchanged\":\"2016-12-09T09:24:07.7230000Z\"}]}]\r\n10:24:13.401 [DEBUG] [marthome.handler.InnogyBridgeHandler] - onEvent called. Msg: [{\"type\":\"device/SHC.RWE/1.0/event/StateChanged\",\"timestamp\":\"2016-12-09T09:24:06.7520000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/StateChanged\",\"link\":{\"value\":\"/device/7a895f5ad58745fd9edf75cf3cf7da76\"},\"Properties\":[{\"name\":\"IsReachable\",\"value\":true,\"lastchanged\":\"2016-12-09T09:24:06.7240000Z\"},{\"name\":\"DeviceConfigurationState\",\"value\":\"Complete\",\"lastchanged\":\"2016-12-06T16:09:33.3870000Z\"},{\"name\":\"DeviceInclusionState\",\"value\":\"Included\",\"lastchanged\":\"2016-12-06T16:09:32.0220000Z\"},{\"name\":\"UpdateState\",\"value\":\"UpToDate\",\"lastchanged\":\"0001-01-01T00:00:00.0000000Z\"},{\"name\":\"FirmwareVersion\",\"value\":\"1.7\",\"lastchanged\":\"2016-12-09T09:24:06.7510000Z\"}]},{\"type\":\"device/SHC.RWE/1.0/event/MessageDeleted\",\"timestamp\":\"2016-12-09T09:24:07.0270000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/MessageDeleted\",\"link\":{\"value\":\"/message/d7cefe8f085241d0bb301e06d3a3e210\"}},{\"type\":\"device/SHC.RWE/1.0/event/StateChanged\",\"timestamp\":\"2016-12-09T09:24:07.7450000Z\",\"desc\":\"/desc/device/SHC.RWE/1.0/event/StateChanged\",\"link\":{\"value\":\"/capability/ad90047515274f47a82c6f38e460c752\"},\"Properties\":[{\"name\":\"OnState\",\"value\":false,\"lastchanged\":\"2016-12-09T09:24:07.7230000Z\"}]}]\r\n10:24:13.412 [DEBUG] [marthome.handler.InnogyBridgeHandler] - Event found: Type:device/SHC.RWE/1.0/event/StateChanged Capability:/device/7a895f5ad58745fd9edf75cf3cf7da76\r\n10:24:13.414 [DEBUG] [home.internal.DeviceStructureManager] - getDeviceById 7a895f5ad58745fd9edf75cf3cf7da76:true\r\n10:24:13.416 [DEBUG] [marthome.handler.InnogyBridgeHandler] - DEVICE STATE CHANGED!!!\r\n10:24:13.417 [DEBUG] [marthome.handler.InnogyDeviceHandler] - DeviceId 7a895f5ad58745fd9edf75cf3cf7da76 relevant for this handler.\r\n10:24:13.419 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed IsReachable to true.\r\n10:24:13.421 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed DeviceConfigurationState to Complete.\r\n10:24:13.422 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed DeviceInclusionState to Included.\r\n10:24:13.424 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed UpdateState to UpToDate.\r\n10:24:13.426 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed FirmwareVersion to 1.7.\r\n10:24:13.427 [DEBUG] [marthome.handler.InnogyDeviceHandler] - onDeviceStateChanged called with device Lichterkette/7a895f5ad58745fd9edf75cf3cf7da76\r\n10:24:13.431 [DEBUG] [marthome.handler.InnogyDeviceHandler] - ->capability:ad90047515274f47a82c6f38e460c752 (SwitchActuator/Switch)\r\n10:24:13.433 [DEBUG] [marthome.handler.InnogyDeviceHandler] - Capability not available for device Lichterkette (PSSO)\r\n10:24:13.437 [DEBUG] [marthome.handler.InnogyBridgeHandler] - Event found: Type:device/SHC.RWE/1.0/event/MessageDeleted Capability:/message/d7cefe8f085241d0bb301e06d3a3e210\r\n10:24:13.439 [DEBUG] [marthome.handler.InnogyBridgeHandler] - Unknown eventtype device/SHC.RWE/1.0/event/MessageDeleted.\r\n10:24:13.441 [DEBUG] [marthome.handler.InnogyBridgeHandler] - Event found: Type:device/SHC.RWE/1.0/event/StateChanged Capability:/capability/ad90047515274f47a82c6f38e460c752\r\n10:24:13.444 [DEBUG] [marthome.handler.InnogyDeviceHandler] - DeviceId 7a895f5ad58745fd9edf75cf3cf7da76 relevant for this handler.\r\n10:24:13.446 [DEBUG] [marthome.handler.InnogyDeviceHandler] - State changed OnState to false.\r\n10:24:13.449 [DEBUG] [marthome.handler.InnogyDeviceHandler] - Loaded Capability SwitchActuator, Switch with id ad90047515274f47a82c6f38e460c752, device /device/7a895f5ad58745fd9edf75cf3cf7da76 from device id 7a895f5ad58745fd9edf75cf3cf7da76\r\n10:24:13.452 [ERROR] [marthome.handler.InnogyBridgeHandler] - Error with Event: {}\r\njava.lang.NullPointerException\r\n        at org.openhab.binding.innogysmarthome.handler.InnogyDeviceHandler.onDeviceStateChanged(InnogyDeviceHandler.java:321)\r\n        at org.openhab.binding.innogysmarthome.handler.InnogyBridgeHandler.onEvent(InnogyBridgeHandler.java:452)\r\n        at org.openhab.binding.innogysmarthome.internal.InnogyWebSocket.onMessage(InnogyWebSocket.java:63)\r\n        at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_111]\r\n        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_111]\r\n        at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessage(JettyAnnotatedEventDriver.java:234)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame(JettyAnnotatedEventDriver.java:226)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:376)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:679)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:511)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)[210:org.openhab.binding.innogysmarthome:2.0.0.201612072035]\r\n        at java.lang.Thread.run(Thread.java:745)[:1.8.0_111]\r\n10:26:42.684 [INFO ] [gysmarthome.internal.InnogyWebSocket] - Connection to innogy WebSocket was closed (code: 1000). Reason: null\r\n10:26:42.687 [INFO ] [marthome.handler.InnogyBridgeHandler] - Starting web socket.\r\n10:26:42.688 [DEBUG] [marthome.handler.InnogyBridgeHandler] - WebSocket URL: wss://api.services-smarthome.de/API/1.0/events?token=blablubbbb\r\n10:26:42.990 [INFO ] [gysmarthome.internal.InnogyWebSocket] - Connected to innogy WebSocket.\r\n10:26:42.996 [DEBUG] [gysmarthome.internal.InnogyWebSocket] - innogy Websocket session: WebSocketSession[websocket=JettyAnnotatedEventDriver[org.openhab.binding.innogysmarthome.internal.InnogyWebSocket@13619f0],behavior=CLIENT,connection=WebSocketClientConnection@158E2A94{endp=DecryptedEndPoint@1f1e5a6{api.services-smarthome.de/193.25.80.79:443<->60634,Open,in,out,-,-,60/300000,WebSocketClientConnection@158e2a94}->SelectChannelEndPoint@1ce7280{api.services-smarthome.de/193.25.80.79:443<->60634,Open,in,out,-,-,9/300000,SslConnection@ccef9d}{io=0/0,kio=0,kro=1},ios=IOState@194942d[CONNECTED,!in,out],f=Flusher[queueSize=0,aggregateSize=0,failure=null],g=Generator[CLIENT,validating],p=Parser@15892ac[ExtensionStack,s=START,c=0,len=0,f=null]},remote=WebSocketRemoteEndpoint@1eab7b5[batching=true],incoming=JettyAnnotatedEventDriver[org.openhab.binding.innogysmarthome.internal.InnogyWebSocket@13619f0],outgoing=ExtensionStack[queueSize=0,extensions=[],incoming=org.eclipse.jetty.websocket.common.WebSocketSession,outgoing=org.eclipse.jetty.websocket.client.io.WebSocketClientConnection]]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/comments/269318685","html_url":"https://github.com/ollie-dev/openhab2-addons/issues/9#issuecomment-269318685","issue_url":"https://api.github.com/repos/ollie-dev/openhab2-addons/issues/9","id":269318685,"user":{"login":"ollie-dev","id":7187675,"avatar_url":"https://avatars.githubusercontent.com/u/7187675?v=3","gravatar_id":"","url":"https://api.github.com/users/ollie-dev","html_url":"https://github.com/ollie-dev","followers_url":"https://api.github.com/users/ollie-dev/followers","following_url":"https://api.github.com/users/ollie-dev/following{/other_user}","gists_url":"https://api.github.com/users/ollie-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie-dev/subscriptions","organizations_url":"https://api.github.com/users/ollie-dev/orgs","repos_url":"https://api.github.com/users/ollie-dev/repos","events_url":"https://api.github.com/users/ollie-dev/events{/privacy}","received_events_url":"https://api.github.com/users/ollie-dev/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T12:18:25Z","updated_at":"2016-12-27T12:18:25Z","body":"Should be fixed with commit af9c6b6d0e962d58d546674f8f4f5a3d7ea6b77f. "}}
{"actor":{"display_login":"ollie-dev"}}