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 read property 'state' of null #525

Closed
jonferreira opened this issue Dec 8, 2021 · 3 comments
Closed

TypeError: Cannot read property 'state' of null #525

jonferreira opened this issue Dec 8, 2021 · 3 comments

Comments

@jonferreira
Copy link

Documentation URL

No response

The problem

Hi all.

I've been fighting with some nasty errors with this node which immediately crash node-red. Think I've finally tracked it down:

image

This happens when I add a new device to HA. Today it happened me multiple times few seconds after a new device has been added to deconz which in turn is then picked up by HA.

Sounds like something is null at the time a device is added which is unexpected by the node and throws an exception?

@zachowj
Copy link
Owner

zachowj commented Dec 9, 2021

What version are you running?

@jonferreira
Copy link
Author

oops my bad!

node-red 2.0.6
node-red-contrib-home-assistant-websocket 0.38.0
home-assistant 2021.9.2

this has been happening for a couple of months now and in between I've update everything multiple times with no change in behaviour

@zachowj zachowj closed this as completed in 1e38d7f Dec 9, 2021
@jonferreira
Copy link
Author

damn that was fast. thanks! will update as soon as it's published to npm

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

2 participants