andreypopov / node-red-contrib-zigbee2mqtt

Zigbee2mqtt connectivity nodes for node-red
GNU General Public License v3.0
94 stars 24 forks source link

Node-Red add on stops running due to TypeError: Cannot use 'in' operator to search for 'brightness' in ON #127

Open Wolk9 opened 11 months ago

Wolk9 commented 11 months ago

My log:

`s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service base-addon-banner: starting

Add-on: Node-RED Flow-based programming for the Internet of Things

Add-on version: 16.0.2 You are running the latest version of this add-on. System: Home Assistant OS 11.2 (aarch64 / raspberrypi4-64) Home Assistant Core: 2023.12.3 Home Assistant Supervisor: 2023.12.0

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started Log level is set to WARNING s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-nginx: starting s6-rc: info: service init-customizations: starting s6-rc: info: service init-customizations successfully started s6-rc: info: service init-nodered: starting s6-rc: info: service init-nginx successfully started

up to date, audited 443 packages in 13s

69 packages are looking for funding run npm fund for details

17 vulnerabilities (12 moderate, 4 high, 1 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues possible (including breaking changes), run: npm audit fix --force

Some issues need review, and may require choosing a different dependency.

Run npm audit for details. s6-rc: info: service init-nodered successfully started s6-rc: info: service nodered: starting s6-rc: info: service nodered successfully started s6-rc: info: service nginx: starting s6-rc: info: service nginx successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started

start node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js

21 Dec 00:29:07 - [warn] Projects disabled : editorTheme.projects.enabled=false 21 Dec 00:29:14 - [red] Uncaught Exception: 21 Dec 00:29:14 - [error] TypeError: Cannot use 'in' operator to search for 'brightness' in ON at Function.payload2homekit (/config/node_modules/node-red-contrib-zigbee2mqtt/resources/Zigbee2mqttHelper.js:201:26) at ServerNode._getItemByKey (/config/node_modules/node-red-contrib-zigbee2mqtt/nodes/server.js:133:63) at ServerNode.getDeviceByKey (/config/node_modules/node-red-contrib-zigbee2mqtt/nodes/server.js:156:25) at ServerNode.getDeviceOrGroupByKey (/config/node_modules/node-red-contrib-zigbee2mqtt/nodes/server.js:143:31) at ServerNode.onMQTTMessage (/config/node_modules/node-red-contrib-zigbee2mqtt/nodes/server.js:831:32) at MqttClient. (/config/node_modules/node-red-contrib-zigbee2mqtt/nodes/server.js:27:62) at MqttClient.emit (node:events:517:28) at MqttClient._handlePublish (/config/node_modules/mqtt/lib/client.js:1541:12) at MqttClient._handlePacket (/config/node_modules/mqtt/lib/client.js:529:12) at work (/config/node_modules/mqtt/lib/client.js:430:12) at processTicksAndRejections (node:internal/process/task_queues:77:11) s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service nginx: stopping s6-rc: info: service nginx successfully stopped s6-rc: info: service init-nginx: stopping s6-rc: info: service nodered: stopping s6-rc: info: service init-nginx successfully stopped s6-rc: info: service nodered successfully stopped s6-rc: info: service init-nodered: stopping s6-rc: info: service init-nodered successfully stopped s6-rc: info: service init-customizations: stopping s6-rc: info: service init-customizations successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service base-addon-log-level: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service base-addon-log-level successfully stopped s6-rc: info: service base-addon-banner: stopping s6-rc: info: service base-addon-banner successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped`