NEWS
Test Adapter deConz v1.3.x Github/npm
-
@frankyboy73 sagte in Test Adapter deConz v1.3.x Github/npm:
Nur habe ich immer noch jede Minute die Debug Meldung "Websocket Connection closed"
Die Meldung bleibt weil die Verbindung tatsächlich getrennt wird.
-
@Jey-Cee
Ok, und nach dem Reconnect, wird geprüft ob es geänderte Zustände gibt. Also normal.
So wie es aussieht werden auch manchmal nach dem Reconnect geänderte Zustände gefunden, das hatte ich bei der Version 1.2.6 nie gesehen. Dann hoffe ich das keine Zustandsänderungen mehr durchschlüpfen. Bis jetzt sieht es gut aus.
Vielen Dank für die Info. -
Ich hab auf Sentry einige Fehlermeldungen erhalten und versucht die Fehler ab zu fangen, deshalb gibt es jetzt die Version 1.3.3.
-
@Jey-Cee Grad die 1.3.3 installiert!
-
Ich habe mich gestern bereits mit @Jey-Cee in GitHub zur 1.3.2 über Auffälligkeiten zur Statusaktualisierung ausgetauscht. Danke übrigens für die schnellen RM, heute habe ich nun die 1.3.3 aufgespielt und kann folgendes zurückmelden:
-
Inzwischen wird das .scene Attribut in einer Lichtgruppe korrekt aktualisiert. Ein Szenenwechsel kann damit aber nicht vorgenommen werden. Ist das so vorgesehen?
-
Das .level Attribut wird bei mir sowohl in der Lichtgruppe als auch in Einzellichter bei einer Änderung (z.B. der Szene) nicht korrekt aktualisiert bzw. wird zwar angeblich aktualisiert (leuchtet kurz grün) aber bleibt auf dem alten wert.
-
Im Vergleich zur 1.3.2 kann ich nun Szenen über den Adapter löschen und die Stati der Leuchtengruppe aktualisieren sich danach noch (wann auch nicht alle mit dem richtigen Wert)
-
-
@123brokerei sagte in Test Adapter deConz v1.3.x Github/npm:
Ist das so vorgesehen?
Kann ich nicht sagen da ich das mit den Szenen nicht eingebaut habe, aber darüber konnte man
noch nie eine Szene aufrufen. -
Habe inzw. auch die aktuelle v1.3.3 installiert und leider ist der Fehler mit den mehrfachen Websocketverbindungen noch zutrefend bei mir. Allerdings sind es aktuell nur 2. Bzw. werden aktuell alle Befehle nur 2x gesendet. Die zwei Verbindungen sind auch nicht von vorne herein. die erste Minute funktioniert es normal.
Ansonsten habe ich keine Fehler bemerkt.Direkt nach dem Start:
2020-04-20 02:12:28.453 - info: deconz.0 (28200) Code 404: Ressource not found get devices: []
2020-04-20 02:12:28.905 - debug: deconz.0 (28200) Code 200: Request succeded get group attributes 43372: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":null,"xy":[0,0]},"devicemembership":["46"],"etag":"fe43f56ce2a448ef9e6a232f8fd40739","id":"43372","lights":[],"name":"TRADFRI remote control 46","scenes":[],"state":{"all_on":false,"any_on":false},"type":"LightGroup"} 2020-04-20 02:12:28.919 - debug: deconz.0 (28200) Code 200: Request succeded get group attributes 56956: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":null,"xy":[0,0]},"devicemembership":["47"],"etag":"de4638d88e100221de96a921f7df761f","id":"56956","lights":[],"name":"TRADFRI remote control 47","scenes":[],"state":{"all_on":false,"any_on":false},"type":"LightGroup"} 2020-04-20 02:12:32.366 - debug: deconz.0 (28200) Websocket connection closed 2020-04-20 02:12:32.377 - warn: deconz.0 (28200) Could not connect to websocket instance of deConz/Phoscon. Error: WebSocket was closed before the connection was established 2020-04-20 02:12:32.379 - debug: deconz.0 (28200) Websocket connection closed 2020-04-20 02:12:32.394 - debug: deconz.0 (28200) Subscribed to updates... 2020-04-20 02:12:43.394 - debug: deconz.0 (28200) Websocket message: {"e":"changed","id":"9","r":"sensors","state":{"buttonevent":4000,"eventduration":0,"lastupdated":"2020-04-20T00:12:43"},"t":"event","uniqueid":"00:17:88:01:04:f6:d6:3e-02-fc00"} 2020-04-20 02:12:43.512 - debug: deconz.0 (28200) Websocket message: {"e":"changed","id":"9","r":"sensors","state":{"buttonevent":4002,"eventduration":1,"lastupdated":"2020-04-20T00:12:43"},"t":"event","uniqueid":"00:17:88:01:04:f6:d6:3e-02-fc00"}
kurz drauf:
2020-04-20 02:15:13.438 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: 1002 2020-04-20 02:15:13.439 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: setForeignState(id=deconz.0.Lights.1.on, state=true) 2020-04-20 02:15:13.440 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: getState(id=deconz.0.Lights.1.bri, timerId=undefined) => {"val":254,"ack":true,"ts":1587341711623,"q":0,"from":"system.adapter.deconz.0","user":"system.user.admin","lc":1587340976303} 2020-04-20 02:15:13.475 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: 1002 2020-04-20 02:15:13.475 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: setForeignState(id=deconz.0.Lights.1.on, state=true) 2020-04-20 02:15:13.476 - info: javascript.0 (1468) script.js.Eigene.DimmerSkript: getState(id=deconz.0.Lights.1.bri, timerId=undefined) => {"val":254,"ack":true,"ts":1587341711623,"q":0,"from":"system.adapter.deconz.0","user":"system.user.admin","lc":1587340976303} 2020-04-20 02:15:13.514 - debug: deconz.0 (28200) stateChange Lights.1 {"val":true,"ack":false,"ts":1587341713504,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587341713504} 2020-04-20 02:15:13.516 - debug: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1 2020-04-20 02:15:13.522 - debug: deconz.0 (28200) stateChange Lights.1 {"val":true,"ack":false,"ts":1587341713507,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587341713507} 2020-04-20 02:15:13.524 - debug: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1 2020-04-20 02:15:13.586 - debug: deconz.0 (28200) Code 200: Request succeded set light state 1: [{"success":{"/lights/1/state/on":true}}] 2020-04-20 02:15:13.590 - debug: deconz.0 (28200) Websocket message: {"e":"changed","id":"1","r":"lights","state":{"alert":null,"bri":254,"colormode":"ct","ct":370,"on":true,"reachable":true},"t":"event","uniqueid":"90:fd:9f:ff:fe:8a:31:88-01"} 2020-04-20 02:15:13.592 - debug: deconz.0 (28200) Websocket message: {"e":"changed","id":"1","r":"lights","state":{"alert":null,"bri":254,"colormode":"ct","ct":370,"on":true,"reachable":true},"t":"event","uniqueid":"90:fd:9f:ff:fe:8a:31:88-01"} 2020-04-20 02:15:13.617 - debug: deconz.0 (28200) Code 200: Request succeded get light state 1: {"ctmax":454,"ctmin":250,"etag":"c8db320d85d28e7d47f968d58c42a554","hascolor":true,"manufacturername":"IKEA of Sweden","modelid":"TRADFRI bulb E14 WS opal 400lm","name":"TradfriE14","state":{"alert":"none","bri":254,"colormode":"ct","ct":370,"on":true,"reachable":true},"swversion":"2.3.007","type":"Color temperature light","uniqueid":"90:fd:9f:ff:fe:8a:31:88-01"} 2020-04-20 02:15:13.648 - debug: deconz.0 (28200) Code 200: Request succeded get light state 1: {"ctmax":454,"ctmin":250,"etag":"c8db320d85d28e7d47f968d58c42a554","hascolor":true,"manufacturername":"IKEA of Sweden","modelid":"TRADFRI bulb E14 WS opal 400lm","name":"TradfriE14","state":{"alert":"none","bri":254,"colormode":"ct","ct":370,"on":true,"reachable":true},"swversion":"2.3.007","type":"Color temperature light","uniqueid":"90:fd:9f:ff:fe:8a:31:88-01"} 2020-04-20 02:15:13.665 - debug: deconz.0 (28200) Code 200: Request succeded set light state 1: [{"success":{"/lights/1/state/on":true}}]
Grüße!
-
Inzw. sind es auch wieder 4 gleichzeitige Verbindungen.
2020-04-20 14:13:23.272 - [32minfo[39m: javascript.0 (1468) script.js.Eigene.DimmerSkript: 4002 2020-04-20 14:13:23.273 - [32minfo[39m: javascript.0 (1468) script.js.Eigene.DimmerSkript: setForeignState(id=deconz.0.Lights.1.on, state=false) 2020-04-20 14:13:23.274 - [32minfo[39m: javascript.0 (1468) script.js.Eigene.DimmerSkript: getState(id=deconz.0.Lights.1.bri, timerId=undefined) => {"val":1,"ack":true,"ts":1587384798828,"q":0,"from":"system.adapter.deconz.0","user":"system.user.admin","lc":1587342025743} 2020-04-20 14:13:23.297 - [34mdebug[39m: deconz.0 (28200) stateChange Lights.1 {"val":false,"ack":false,"ts":1587384803263,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587384803263} 2020-04-20 14:13:23.299 - [34mdebug[39m: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1 2020-04-20 14:13:23.303 - [34mdebug[39m: deconz.0 (28200) stateChange Lights.1 {"val":false,"ack":false,"ts":1587384803263,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587384803263} 2020-04-20 14:13:23.304 - [34mdebug[39m: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1 2020-04-20 14:13:23.308 - [34mdebug[39m: deconz.0 (28200) stateChange Lights.1 {"val":false,"ack":false,"ts":1587384803264,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587384803264} 2020-04-20 14:13:23.310 - [34mdebug[39m: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1 2020-04-20 14:13:23.321 - [34mdebug[39m: deconz.0 (28200) stateChange Lights.1 {"val":false,"ack":false,"ts":1587384803306,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1587384803264} 2020-04-20 14:13:23.322 - [34mdebug[39m: deconz.0 (28200) dp: on; id:Lights.1 tmp: deconz,0,Lights,1
inzw. sind es über 50.
-
setState('deconz.0.Sensors.5.delay', 5);
deconz.0 2020-04-21 12:42:55.842 warn (22673) This value will not be set in future versions. Please report this to the developer. deconz.0 2020-04-21 12:42:55.841 warn (22673) State value to set is invalid for deconz.0.Sensors.5.delay: The state is missing the required property val!
js-controller 3.0
Ist das ein Fehler den ich in meinem Skript habe, oder etwas das im Adapter behoben werden muß?
-
@ticaki muss im Adapter behoben werden.
-
Issue erstellt.
-
@Kugelkopf kannst du bitte mal upnp von deConz deaktivieren und beobachten was passiert?
Hier eine Anleitung für Linux wie man upnp deaktiviert. -
Die 1.3.4 ist verfügbar, damit sollte die Meldung "State value to set is invalid" der Vergangenheit angehören.
Außerdem werden jetzt ein paar Fehler abgefangen die über Sentry gemeldet wurden.Eine Neuerung ist das Werte die nicht dem Typ des Datenpunkts entsprechen, also wenn man statt einer Nummer einen Text eingibt, nicht mehr an deConz gesendet werden. Das es der Falsche Typ ist wird schon von ioBroker im Log gemeldet, es gibt also keine neue Meldung im Log dazu.
Diese Maßnahme soll nur Verhindern das Unnötige anfragen an deConz geschickt werden. -
@Jey-Cee
Ok, hab nun geupdated auf den neusten JS-Controller3, Nodejs12 und deconz 1.3.4. Zusätzlich die Upnp Geschichte ausgeschaltet! Werde es weiter beobachten. Besten Dank! -
@ jey cee
Seite dem Update heute auf 1.3.4 und dem Update auf den JS controller 3.0.17 schaffe ich es leider nicht mehr mich mit dem Dienst zu verbinden. Die Phosconapp läuft einwandfrei. Anbei ein Auszug des Logs. Kann da jemand helfen?deconz.0 2020-04-23 17:54:06.390 info (13562) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:54:06.389 info (13562) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:54:06.387 info (13562) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:54:06.384 info (13562) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:54:06.324 info (13562) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:54:06.308 info (13562) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:54:06.307 info (13562) terminating deconz.0 2020-04-23 17:54:06.269 info (13562) cleaned everything up... deconz.0 2020-04-23 17:54:06.266 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-23 17:54:06.266 error at getAutoUpdates (/opt/iobroker/node_modules/iobroker.deconz/main.js:678:14) deconz.0 2020-04-23 17:54:06.266 error at new WebSocket (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:72:7) deconz.0 2020-04-23 17:54:06.266 error at initAsClient (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:478:17) deconz.0 2020-04-23 17:54:06.266 error at new URL (internal/url.js:319:5) deconz.0 2020-04-23 17:54:06.266 error at onParseError (internal/url.js:241:17) deconz.0 2020-04-23 17:54:06.266 error (13562) TypeError [ERR_INVALID_URL]: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:54:06.256 error (13562) uncaught exception: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:54:06.175 info (13562) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.17 deconz.0 2020-04-23 17:53:32.591 info (12993) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:53:32.590 info (12993) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:53:32.588 info (12993) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:53:32.578 info (12993) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:53:32.516 info (12993) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:53:32.505 info (12993) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:53:32.503 info (12993) terminating deconz.0 2020-04-23 17:53:32.466 info (12993) cleaned everything up... deconz.0 2020-04-23 17:53:32.463 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-23 17:53:32.463 error at getAutoUpdates (/opt/iobroker/node_modules/iobroker.deconz/main.js:678:14) deconz.0 2020-04-23 17:53:32.463 error at new WebSocket (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:72:7) deconz.0 2020-04-23 17:53:32.463 error at initAsClient (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:478:17) deconz.0 2020-04-23 17:53:32.463 error at new URL (internal/url.js:319:5) deconz.0 2020-04-23 17:53:32.463 error at onParseError (internal/url.js:241:17) deconz.0 2020-04-23 17:53:32.463 error (12993) TypeError [ERR_INVALID_URL]: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:53:32.454 error (12993) uncaught exception: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:53:32.365 info (12993) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.17 deconz.0 2020-04-23 17:52:59.256 info (12297) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:59.254 info (12297) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:59.252 info (12297) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:59.249 info (12297) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:59.211 info (12297) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:52:59.197 info (12297) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:52:59.195 info (12297) terminating deconz.0 2020-04-23 17:52:59.140 info (12297) cleaned everything up... deconz.0 2020-04-23 17:52:59.137 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-23 17:52:59.137 error at getAutoUpdates (/opt/iobroker/node_modules/iobroker.deconz/main.js:678:14) deconz.0 2020-04-23 17:52:59.137 error at new WebSocket (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:72:7) deconz.0 2020-04-23 17:52:59.137 error at initAsClient (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:478:17) deconz.0 2020-04-23 17:52:59.137 error at new URL (internal/url.js:319:5) deconz.0 2020-04-23 17:52:59.137 error at onParseError (internal/url.js:241:17) deconz.0 2020-04-23 17:52:59.137 error (12297) TypeError [ERR_INVALID_URL]: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:52:59.127 error (12297) uncaught exception: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:52:59.047 info (12297) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.17 deconz.0 2020-04-23 17:52:25.462 info (11719) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:25.460 info (11719) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:25.458 info (11719) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:52:25.456 info (11719) terminating deconz.0 2020-04-23 17:52:25.446 info (11719) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:25.444 info (11719) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:52:25.384 info (11719) cleaned everything up... deconz.0 2020-04-23 17:52:25.380 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-23 17:52:25.380 error at getAutoUpdates (/opt/iobroker/node_modules/iobroker.deconz/main.js:678:14) deconz.0 2020-04-23 17:52:25.380 error at new WebSocket (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:72:7) deconz.0 2020-04-23 17:52:25.380 error at initAsClient (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:478:17) deconz.0 2020-04-23 17:52:25.380 error at new URL (internal/url.js:319:5) deconz.0 2020-04-23 17:52:25.380 error at onParseError (internal/url.js:241:17) deconz.0 2020-04-23 17:52:25.380 error (11719) TypeError [ERR_INVALID_URL]: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:52:25.371 error (11719) uncaught exception: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:52:25.357 info (11719) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:52:25.233 info (11719) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.17 deconz.0 2020-04-23 17:51:51.871 info (11152) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:51.847 info (11152) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:51.845 info (11152) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:51.843 info (11152) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:51.808 info (11152) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:51:51.794 info (11152) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:51:51.789 info (11152) terminating deconz.0 2020-04-23 17:51:51.722 info (11152) cleaned everything up... deconz.0 2020-04-23 17:51:51.718 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-23 17:51:51.718 error at getAutoUpdates (/opt/iobroker/node_modules/iobroker.deconz/main.js:678:14) deconz.0 2020-04-23 17:51:51.718 error at new WebSocket (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:72:7) deconz.0 2020-04-23 17:51:51.718 error at initAsClient (/opt/iobroker/node_modules/iobroker.deconz/node_modules/ws/lib/websocket.js:478:17) deconz.0 2020-04-23 17:51:51.718 error at new URL (internal/url.js:319:5) deconz.0 2020-04-23 17:51:51.718 error at onParseError (internal/url.js:241:17) deconz.0 2020-04-23 17:51:51.718 error (11152) TypeError [ERR_INVALID_URL]: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:51:51.708 error (11152) uncaught exception: Invalid URL: ws://192.168.178.62:undefined deconz.0 2020-04-23 17:51:51.583 info (11152) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.17 deconz.0 2020-04-23 17:51:18.207 info (10583) Code 403: Forbidden get devices: [{"error":{"address":"/devices","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:18.206 info (10583) Code 403: Forbidden get all groups: [{"error":{"address":"/groups","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:18.204 info (10583) Code 403: Forbidden get all sensors: [{"error":{"address":"/sensors","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:18.202 info (10583) Code 403: Forbidden get all lights: [{"error":{"address":"/lights","description":"unauthorized user","type":1}}] deconz.0 2020-04-23 17:51:18.140 info (10583) Terminated (NO_ERROR): Without reason deconz.0 2020-04-23 17:51:18.139 info (10583) terminating deconz.0 2020-04-23 17:51:18.131 info (10583) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-23 17:51:18.082 info (10583) cleaned everything up...
-
@123brokerei hast du schon den Api Key neu erzeugt?
-
Das ist eben das Problem... ich bekomme nur noch sehr sporadisch einen zugeteilt (von 10 Versuchen vielleicht 1 Treffer) Nach "speichern und schließen" bleibt der Adapter dann aber auf rot. Öffne ich die Einstellungen erneut, ist zwar die IP noch eingetragen, aber der Key ist wieder weg/leer.
-
@Jey-Cee hast du mir noch einen Tip was ich machen kann? Oder könnte es ein Fehler im Adapter sein? Ich habe inzwischen auch einen Downgrade auf 1.2.6 versucht. Ich bekomme dort zwar zuverlässig einen Key aber eine stabile Verbindung, in der die Befehle zuverlässig übertragen werden ist auch dort nicht möglich. Ich habe langsam den Zusammenhang mit dem Update auf den js-controller 3.0.xx im Verdacht. Da ich zuvor eine stabile Verbindung mit deiner Version 1.3.3 hatte. Das ist jetzt nicht mehr möglich. Anbei nochmals ein Log-Auszug.
deconz.0 2020-04-24 16:48:45.821 info (424) Code 404: Ressource not found get devices: [] deconz.0 2020-04-24 16:48:45.715 info (424) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-24 16:48:45.587 info (424) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.18 deconz.0 2020-04-24 16:48:12.247 info (31204) Terminated (NO_ERROR): Without reason deconz.0 2020-04-24 16:48:12.245 info (31204) terminating deconz.0 2020-04-24 16:48:12.187 info (31204) cleaned everything up... deconz.0 2020-04-24 16:48:12.185 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-24 16:48:12.185 error at getState (/opt/iobroker/node_modules/iobroker.deconz/main.js:213:59) deconz.0 2020-04-24 16:48:12.185 error (31204) TypeError: Cannot read property 'id' of undefined deconz.0 2020-04-24 16:48:12.177 error (31204) uncaught exception: Cannot read property 'id' of undefined deconz.0 2020-04-24 16:47:09.689 info (31204) Code 404: Ressource not found get devices: [] deconz.0 2020-04-24 16:47:09.588 info (31204) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-24 16:47:09.467 info (31204) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.18 deconz.0 2020-04-24 16:47:03.139 info (29669) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason deconz.0 2020-04-24 16:47:03.137 info (29669) terminating deconz.0 2020-04-24 16:47:03.136 info (29669) cleaned everything up... deconz.0 2020-04-24 16:47:03.134 info (29669) Got terminate signal TERMINATE_YOURSELF deconz.0 2020-04-24 16:47:01.121 info (29669) Code 404: Ressource not found get config: <html><head></head><body><h1>This is not the page you are looking for</h1><p>The file /:undefined/api/undefined/config couldn't be found.</p></body> deconz.0 2020-04-24 16:47:01.104 info (29669) "8820AED9C3" deconz.0 2020-04-24 16:47:01.102 info (29669) STATUS: {"statusCode":200,"body":"[{\"success\":{\"username\":\"8820AED9C3\"}}]","headers":{"access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length" deconz.0 2020-04-24 16:45:41.780 info (29669) Code 404: Ressource not found get config: <html><head></head><body><h1>This is not the page you are looking for</h1><p>The file /:undefined/api/undefined/config couldn't be found.</p></body> deconz.0 2020-04-24 16:45:41.650 info (29669) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.18 deconz.0 2020-04-24 16:45:36.088 info (28075) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason deconz.0 2020-04-24 16:45:36.087 info (28075) terminating
-
@123brokerei also das ist ein Problem im Adapter, aber das dürfte nicht Auftretten.
Ich weis wie ich das behebe und werde das auch bald machen.
Mich interessiert aber der Auslöser, kannst du mal das Log Level, Instanz Übersicht -> Exprtenmodus, auf debug stellen und dann das log posten. -
@Jey-Cee ... Super schon jetzt vielen Dank für die schnellen Rückmeldungen. Ich habe dir jetzt nochmals ein Log-Auszug mit Log-Status "debug". Ich habe verschiedene Dinge durchgeführt. Unter anderem Key gelöscht und neu angefordert. (das hat dieses Mal sogar geklappt und der Adapter ging gleich auf "grün") Ich habe dann ein paar Szenen in der Lichtgruppe per "recall" aktivieren möchten bzw. die Lichtgruppe mit dem .on Attribut einschalten möchten. Keines der befehle wurde umgesetzt. Solltest du genaue Aktionen im Log sehen wollen gib Bescheid.
deconz.0 2020-04-24 18:46:17.004 debug (838) Subscribed to updates... deconz.0 2020-04-24 18:46:16.996 debug (838) Websocket connection closed deconz.0 2020-04-24 18:46:05.594 debug (838) Code 200: Request succeded get group attributes 30777: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":null,"xy":[0,0]},"devicemembership":["4"] deconz.0 2020-04-24 18:46:05.547 debug (838) Code 200: Request succeded get group attributes 1: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"etag": deconz.0 2020-04-24 18:46:05.425 info (838) Code 404: Ressource not found get devices: [] deconz.0 2020-04-24 18:46:05.398 debug (838) Code 200: Request succeded get all groups: {"1":{"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"etag":"d7 deconz.0 2020-04-24 18:46:05.376 debug (838) Code 200: Request succeded get all sensors: {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"b0fafddac9f903ff38e433f7206ec413","manufacturername":"Phili deconz.0 2020-04-24 18:46:05.341 debug (838) Code 200: Request succeded get all lights: {"3":{"ctmax":454,"ctmin":153,"etag":"d72501d6efa9f8470bca294b128cb730","hascolor":true,"manufacturername":"Philips","modelid":"LTW010","name":"Buero C deconz.0 2020-04-24 18:46:05.316 debug (838) Subscribed to updates... deconz.0 2020-04-24 18:46:05.290 info (838) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-24 18:46:05.287 debug (838) Code 200: Request succeded get config: {"UTC":"2020-04-24T16:46:05","apiversion":"1.16.0","backup":{"errorcode":0,"status":"idle"},"bridgeid":"00212EFFFF05A119","datastoreversion":"60","devicen deconz.0 2020-04-24 18:46:05.162 info (838) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.18 deconz.0 2020-04-24 18:46:04.994 debug (838) Plugin sentry Initialize Plugin (enabled=true) deconz.0 2020-04-24 18:45:31.802 info (32551) Terminated (NO_ERROR): Without reason deconz.0 2020-04-24 18:45:31.801 debug (32551) Plugin sentry destroyed deconz.0 2020-04-24 18:45:31.800 info (32551) terminating deconz.0 2020-04-24 18:45:31.754 debug (32551) Websocket connection closed deconz.0 2020-04-24 18:45:31.741 info (32551) cleaned everything up... deconz.0 2020-04-24 18:45:31.739 error at process._tickCallback (internal/process/next_tick.js:68:7) deconz.0 2020-04-24 18:45:31.739 error at getState (/opt/iobroker/node_modules/iobroker.deconz/main.js:213:59) deconz.0 2020-04-24 18:45:31.739 error (32551) TypeError: Cannot read property 'id' of undefined deconz.0 2020-04-24 18:45:31.732 error (32551) uncaught exception: Cannot read property 'id' of undefined deconz.0 2020-04-24 18:45:31.721 debug (32551) dp: recall; id:Groups.1.Scene_1 tmp: deconz,0,Groups,1,Scene_1 deconz.0 2020-04-24 18:45:31.721 debug (32551) stateChange Groups.1.Scene_1 {"val":true,"ack":false,"ts":1587746731715,"q":0,"from":"system.adapter.admin.0","user":"system.user.admin","lc":1587739242267} deconz.0 2020-04-24 18:45:24.814 debug (32551) Code 200: Request succeded get group attributes 30777: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":null,"xy":[0,0]},"devicemembership":[" deconz.0 2020-04-24 18:45:24.767 debug (32551) Code 200: Request succeded get group attributes 1: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"eta deconz.0 2020-04-24 18:45:24.703 info (32551) Code 404: Ressource not found get devices: [] deconz.0 2020-04-24 18:45:24.666 debug (32551) Code 200: Request succeded get all groups: {"1":{"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"etag": deconz.0 2020-04-24 18:45:24.650 debug (32551) Code 200: Request succeded get all sensors: {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"b0fafddac9f903ff38e433f7206ec413","manufacturername":"Ph deconz.0 2020-04-24 18:45:24.600 debug (32551) Code 200: Request succeded get all lights: {"3":{"ctmax":454,"ctmin":153,"etag":"d72501d6efa9f8470bca294b128cb730","hascolor":true,"manufacturername":"Philips","modelid":"LTW010","name":"Buer deconz.0 2020-04-24 18:45:24.578 debug (32551) Subscribed to updates... deconz.0 2020-04-24 18:45:24.565 info (32551) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-24 18:45:24.562 debug (32551) Code 200: Request succeded get config: {"UTC":"2020-04-24T16:45:24","apiversion":"1.16.0","backup":{"errorcode":0,"status":"idle"},"bridgeid":"00212EFFFF05A119","datastoreversion":"60","devi deconz.0 2020-04-24 18:45:24.436 info (32551) starting. Version 1.3.4 in /opt/iobroker/node_modules/iobroker.deconz, node: v10.20.1, js-controller: 3.0.18 deconz.0 2020-04-24 18:45:24.255 debug (32551) Plugin sentry Initialize Plugin (enabled=true) deconz.0 2020-04-24 18:45:22.637 debug (32551) statesDB connected deconz.0 2020-04-24 18:45:22.636 debug (32551) States connected to redis: 0.0.0.0:9000 deconz.0 2020-04-24 18:45:22.596 debug (32551) States create System PubSub Client deconz.0 2020-04-24 18:45:22.593 debug (32551) States create User PubSub Client deconz.0 2020-04-24 18:45:22.571 debug (32551) Redis States: Use Redis connection: 0.0.0.0:9000 deconz.0 2020-04-24 18:45:22.568 debug (32551) objectDB connected deconz.0 2020-04-24 18:45:22.562 debug (32551) Objects connected to redis: 0.0.0.0:9001 deconz.0 2020-04-24 18:45:22.545 debug (32551) Objects client initialize lua scripts deconz.0 2020-04-24 18:45:22.544 debug (32551) Objects create User PubSub Client deconz.0 2020-04-24 18:45:22.543 debug (32551) Objects create System PubSub Client deconz.0 2020-04-24 18:45:22.538 debug (32551) Objects client ready ... initialize now deconz.0 2020-04-24 18:45:22.502 debug (32551) Redis Objects: Use Redis connection: 0.0.0.0:9001 deconz.0 2020-04-24 18:45:18.360 debug (31503) system.adapter.admin.0: logging true deconz.0 2020-04-24 18:45:18.289 debug (31503) Websocket connection closed deconz.0 2020-04-24 18:45:18.288 info (31503) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason deconz.0 2020-04-24 18:45:18.287 debug (31503) Plugin sentry destroyed deconz.0 2020-04-24 18:45:18.285 info (31503) terminating deconz.0 2020-04-24 18:45:18.284 info (31503) cleaned everything up... deconz.0 2020-04-24 18:45:18.280 info (31503) Got terminate signal TERMINATE_YOURSELF deconz.0 2020-04-24 18:45:18.194 debug (31503) sendTo "saveConfig" to system.adapter.admin.0 from system.adapter.deconz.0 deconz.0 2020-04-24 18:45:11.161 info (31503) Code 403: Forbidden get devices: [{"error":{"address":"/","description":"unauthorized user","type":1}}] deconz.0 2020-04-24 18:45:11.159 info (31503) Code 403: Forbidden get all groups: [{"error":{"address":"/","description":"unauthorized user","type":1}}] deconz.0 2020-04-24 18:45:11.157 info (31503) Code 403: Forbidden get all sensors: [{"error":{"address":"/","description":"unauthorized user","type":1}}] deconz.0 2020-04-24 18:45:11.105 info (31503) Code 403: Forbidden get all lights: [{"error":{"address":"/","description":"unauthorized user","type":1}}] deconz.0 2020-04-24 18:45:11.089 info (31503) deConz Version: 2.5.74; API version: 1.16.0 deconz.0 2020-04-24 18:45:11.087 debug (31503) Code 200: Request succeded get config: {"apiversion":"1.16.0","bridgeid":"00212EFFFF05A119","datastoreversion":"60","devicename":"ConBee II","factorynew":false,"mac":"ce:80:a4:c0:61:58","mod deconz.0 2020-04-24 18:45:11.076 debug (31503) sendTo "createAPIkey" to system.adapter.admin.0 from system.adapter.deconz.0: {"error":0,"message":"EC3D78C13E"} deconz.0 2020-04-24 18:45:11.076 info (31503) "EC3D78C13E" deconz.0 2020-04-24 18:45:11.075 debug (31503) Code 200: Request succeded create API key: [{"success":{"username":"EC3D78C13E"}}] deconz.0 2020-04-24 18:45:11.074 info (31503) STATUS: {"statusCode":200,"body":"[{\"success\":{\"username\":\"EC3D78C13E\"}}]","headers":{"access-control-allow-origin":"*","content-type":"application/json; charset=utf-8","content-length" deconz.0 2020-04-24 18:45:11.063 debug (31503) 192.168.178.62: auth: ZGVsaWdodDpkZWxpZ2h0 deconz.0 2020-04-24 18:45:07.066 debug (31503) sendTo "createAPIkey" to system.adapter.admin.0 from system.adapter.deconz.0: {"error":101,"message":"Unlock Key not pressed"} deconz.0 2020-04-24 18:45:07.065 info (31503) STATUS: {"statusCode":403,"body":"[{\"error\":{\"address\":\"/\",\"description\":\"link button not pressed\",\"type\":101}}]","headers":{"access-control-allow-origin":"*","content-type":"appl deconz.0 2020-04-24 18:45:07.060 debug (31503) 192.168.178.62: auth: ZGVsaWdodDpkZWxpZ2h0 deconz.0 2020-04-24 18:45:03.050 debug (31503) sendTo "createAPIkey" to system.adapter.admin.0 from system.adapter.deconz.0: {"error":101,"message":"Unlock Key not pressed"} deconz.0 2020-04-24 18:45:03.049 info (31503) STATUS: {"statusCode":403,"body":"[{\"error\":{\"address\":\"/\",\"description\":\"link button not pressed\",\"type\":101}}]","headers":{"access-control-allow-origin":"*","content-type":"appl deconz.0 2020-04-24 18:45:03.043 debug (31503) 192.168.178.62: auth: ZGVsaWdodDpkZWxpZ2h0 deconz.0 2020-04-24 18:45:00.118 debug (31503) system.adapter.admin.0: logging false deconz.0 2020-04-24 18:44:59.992 debug (31503) sendTo "createAPIkey" to system.adapter.admin.0 from system.adapter.deconz.0: {"error":101,"message":"Unlock Key not pressed"} deconz.0 2020-04-24 18:44:59.990 info (31503) STATUS: {"statusCode":403,"body":"[{\"error\":{\"address\":\"/\",\"description\":\"link button not pressed\",\"type\":101}}]","headers":{"access-control-allow-origin":"*","content-type":"appl deconz.0 2020-04-24 18:44:59.981 debug (31503) 192.168.178.62: auth: ZGVsaWdodDpkZWxpZ2h0 deconz.0 2020-04-24 18:44:58.323 info (31503) API key deleted deconz.0 2020-04-24 18:44:58.322 debug (31503) Code 200: Request succeded delete API key: [{"success":"/config/whitelist/8820AED9C3 deleted."}] deconz.0 2020-04-24 18:44:58.311 info (31503) deleteAPIkey deconz.0 2020-04-24 18:44:37.005 debug (31503) Subscribed to updates... deconz.0 2020-04-24 18:44:36.998 debug (31503) Websocket connection closed deconz.0 2020-04-24 18:44:30.001 debug (31503) Code 200: Request succeded get group attributes 30777: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":null,"xy":[0,0]},"devicemembership":[" deconz.0 2020-04-24 18:44:29.962 debug (31503) Code 200: Request succeded get group attributes 1: {"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"eta deconz.0 2020-04-24 18:44:29.882 info (31503) Code 404: Ressource not found get devices: [] deconz.0 2020-04-24 18:44:29.879 debug (31503) Code 200: Request succeded get all groups: {"1":{"action":{"bri":127,"colormode":"hs","ct":0,"effect":"none","hue":0,"on":false,"sat":127,"scene":"1","xy":[0,0]},"devicemembership":[],"etag": deconz.0 2020-04-24 18:44:29.848 debug (31503) Code 200: Request succeded get all sensors: {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"b0fafddac9f903ff38e433f7206ec413","manufacturername":"Ph deconz.0 2020-04-24 18:44:29.804 debug (31503) Code 200: Request succeded get all lights: {"3":{"ctmax":454,"ctmin":153,"etag":"d72501d6efa9f8470bca294b128cb730","hascolor":true,"manufacturername":"Philips","modelid":"LTW010","name":"Buer deconz.0 2020-04-24 18:44:29.774 info (31503) deConz Version: 2.5.74; API version: 1.16.0