Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wolk9 opened this issue Dec 20, 2023 · 0 comments

Comments

@Wolk9
Copy link

Wolk9 commented Dec 20, 2023

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant