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

"TypeError: Cannot use 'in' operator to search for 'position' in null" #109

Open
RedJohn14 opened this issue Jan 30, 2023 · 10 comments
Open

Comments

@RedJohn14
Copy link

Hello everyone,

I have newest NodeRed with installed node-red-contrib-zigbee2mqtt.

After upgrade to 2.6.4 I can not controll ALL my devices :-(

I tested single lights and groups always:

"TypeError: Cannot use 'in' operator to search for 'position' in null"

I tested command Zigbee2mqtt ON/OFF and TOGGLE.

Please help me :-(

@andreypopov
Copy link
Owner

andreypopov commented Jan 31, 2023

try run this command from .node-red folder
npm i [email protected]

Do you have more specific logs, I need file name and line number.

@RedJohn14
Copy link
Author

Hello @andreypopov thanks for fast reply!
Do you have information / date for release the 2.7.0 version final?

Currently I have nodered in docker and would hate to install packages via "npm -i" :-(
Bildschirm­foto 2023-01-31 um 21 29 29

The error is visible if I touch some switch to control lights. I used "out" for this.

@Zerrox0
Copy link

Zerrox0 commented Jan 31, 2023

I was am running into the same issue.
It seems to be fixed in 2.7.0-beta.
It behaves very inconistently and I got it to work some times but not other times.

Currently I have nodered in docker and would hate to install packages via "npm -i"

I am also running node-red inside a docker container.
As long as your entire /data directory is perstistent using npm i is fine, because node_modules is stored in that directory as well.

@Zerrox0
Copy link

Zerrox0 commented Feb 1, 2023

Alright, I figured it out:

The issue is in nodes/out.js:105

device.current_values is null. A simple null-check prevents this error from happening.
This might be an issue in other places of the code as well, because current_values is never checked for null values.

@RedJohn14
Copy link
Author

Alright, I figured it out:

The issue is in nodes/out.js:105

device.current_values is null. A simple null-check prevents this error from happening. This might be an issue in other places of the code as well, because current_values is never checked for null values.

Thank you for the fast reply :-). Do you have information / date for release the 2.7.0 version final? Because it would be nice to have installed "a stable" version via the node red installer.

@Zerrox0
Copy link

Zerrox0 commented Feb 1, 2023

Thank you for the fast reply :-). Do you have information / date for release the 2.7.0 version final? Because it would be nice to have installed "a stable" version via the node red installer.

Sorry, you must be mistaking me for someone else. I'm not a contributor for this project, just a random person that ran into the same issue and tried to help with the debugging.

@RedJohn14
Copy link
Author

It behaves very inconistently and I got it to work some times but not other times.

Oh sorry my mistake ^^
You "solved" the problem by using npm i [email protected] inside the node red container?

@andreypopov Do you have information / date for release the 2.7.0 version final? Because it would be nice to have installed "a stable" version via the node red installer.

@andreypopov
Copy link
Owner

andreypopov commented Feb 1, 2023

Updated, please check

@Zerrox0
Copy link

Zerrox0 commented Feb 1, 2023

Just checked. Works for me.

@RedJohn14
Copy link
Author

Updated, please check

Hi @andreypopov perfect !!! :-)

Works for me too.

Thank you for the quick support

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

3 participants