emilohman / node-red-contrib-plejd

A set of Node-RED nodes for interacting with Plejd.
MIT License
4 stars 1 forks source link

Cannot read property 'register' of null #4

Open iCarl opened 5 years ago

iCarl commented 5 years ago

I get error 23 Oct 18:28:20 - [error] [plejd out:89657622.d564] TypeError: Cannot read property 'register' of null when running Node-Red Also, when I try to inject a msg I get error 23 Oct 18:31:11 - [error] [plejd out:89657622.d564] TypeError: Cannot read property 'toString' of undefined

emilohman commented 5 years ago

Did you setup a Plejd connection with your crypto key? On what platform are you running? Raspberry Pi?

iCarl commented 5 years ago

Raspberry Pi 3, I did set up a connection with a crypto key.

emilohman commented 5 years ago

I seems like plejd out can't find the connection node.. Could you please restart node red and get the logs with something like: tail -f -n 100 /var/log/syslog | grep "Node-RED"

gobo-ws commented 2 years ago

Anyone that managed to solve this problem? I have the same issue. First of all I turned off Bluetooth on my phone, then power cycled the Plejd device. Obtained the crytokey and id, tried to connect first on a RPi 3 then on a RPi 4 device but the logs just say: [error] [plejd out:Test] TypeError: Cannot read property 'toString' of undefined

Dhax0r commented 1 year ago

I had the same issue, It was solved by disable plugin as described in @abandonware/noble. One tip to help debugging is to change log level from info to debug in .node-red/settings.js.

gobo-ws commented 1 year ago

Thanks for the tip @Dhax0r However, I gave up on my Plejd plans as I haven't been able to export the crypto key and device id from either Android or iOS when I tried again with a new device last week. So I guess they have blocked that possibility now (it worked for me last summer)