Jey-Cee / ioBroker.deconz

Connects to deConz software developed by dresden-elektronik. This software aims to be a universal ZigBee Gateway solution, using hardware from dresden-elektronik the ConBee USB stick and RaspBee a modul for the Raspberry Pi.
Apache License 2.0
55 stars 34 forks source link

[Bug]: Cannot read properties of undefined (reading 'value') at WebSocket.ws.onmessage #319

Closed sansonifabio closed 1 year ago

sansonifabio commented 1 year ago

Contact Details

No response

What happened?

Hallo Jey-Cee, seit der Phoscon Beta Version 2.19.02 habe ich folgendes Problem. Wenn ich über die Phoscon App ein neues Gerät suchen lassen und es hinzugefügt wird stürzt der Deconz Adapter ab, startet dann neu und arbeitet wieder zuverlässig weiter. Wie gesagt, das passiert nur bei Gerätesuche in über die Phocon App. Kannst du mal bitte schauen was da los ist? Grüße Fabio

Adapter Version

1.3.21

deConz (Phoscon) Version

2.19.02 / 19.9.2022

JS-Controller Version

4.0.23

Node JS Version

16.18.1

NPM Version

8.19.2

Operating System

Debian

Relevant log output

deconz.0
2022-11-12 14:58:18.265 info    deConz Version: 2.19.2; API version: 1.16.0

deconz.0
2022-11-12 14:58:18.232 info    starting. Version 1.3.21 (non-npm: Jey-Cee/ioBroker.deconz) in /opt/iobroker/node_modules/iobroker.deconz, node: v16.18.1, js-controller: 4.0.23
host.nuc
2022-11-12 14:58:17.665 info    instance system.adapter.deconz.0 started with pid 17489
host.nuc
2022-11-12 14:57:47.608 info    Restart adapter system.adapter.deconz.0 because enabled
host.nuc
2022-11-12 14:57:47.607 error   instance system.adapter.deconz.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

deconz.0
2022-11-12 14:57:47.541 warn    get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.540 warn    Could not perform strict object check of state deconz.0.Sensors.242.temperature: DB closed

deconz.0
2022-11-12 14:57:47.539 warn    get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.539 warn    Could not perform strict object check of state deconz.0.Sensors.242.temperature: DB closed

deconz.0
2022-11-12 14:57:47.534 warn    get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.533 warn    get state error: Connection is closed.

deconz.0
2022-11-12 14:57:47.025 warn    Terminated (UNCAUGHT_EXCEPTION): Without reason

deconz.0
2022-11-12 14:57:47.025 info    terminating

deconz.0
2022-11-12 14:57:47.025 info    cleaned everything up...

deconz.0
2022-11-12 14:57:47.024 error   Cannot read properties of undefined (reading 'value')

deconz.0
2022-11-12 14:57:47.024 error   TypeError: Cannot read properties of undefined (reading 'value') at WebSocket.ws.onmessage (/opt/iobroker/node_modules/iobroker.deconz/main.js:621:68) at runMicrotasks (<anonymous>) at runNextTicks (node:internal/process/task_queues:61:5) at processImmediate (node:internal/timers:437:9)

deconz.0
2022-11-12 14:57:47.023 error   unhandled promise rejection: Cannot read properties of undefined (reading 'value')

deconz.0
2022-11-12 14:57:47.022 error   Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().

Anything else?

Hello Jey Cee, since Phoscon Beta Version 2.19.02 I have the following problem. If I use the Phoscon app to search for a new device and it is added, the Deconz adapter crashes, then restarts and continues to work reliably. As I said, this only happens when searching for devices via the Phocon app. Can you please see what's going on? Greetings Fabio

Jey-Cee commented 1 year ago

Hi Fabio, dauert etwas bis ich mich darum kümmern kann.

sansonifabio commented 1 year ago

Hallo Christoph, alles gut. Mach wenn du Zeit hast, das eilt nicht. Grüße Fabio

sansonifabio commented 1 year ago

Danke schön 👍