mlfunston / node-red-contrib-broadlink-control

Set of node-red nodes to manage the Broadlink home automation device suite
MIT License
44 stars 24 forks source link

Starting #12

Closed KeesKemper closed 4 years ago

KeesKemper commented 5 years ago

Starting node-RED gives the following issue:

7 Mar 10:32:21 - TypeError: Cannot read property 'code' of undefined at /home/pi/.node-red/node_modules/node-red-contrib-broadlink-control/nodes/RMNode.js:92:143 nodered.service: Main process exited, code=exited, status=1/FAILURE nodered.service: Unit entered failed state. nodered.service: Failed with result 'exit-code'.

mlfunston commented 5 years ago

Do you have the jsonIrCode file populated with data in the correct format and the correct catalog folder path to the file in the RM node config?

KeesKemper commented 5 years ago

I have found out that there was an error in the Action set from the msg.payload. But that should not be a reason to stop the complete nodered service. In that way it's very complicated to make a correction.

mlfunston commented 5 years ago

Ok - Can you let me know what msg you sent in and I can see if the error handling can be improved to address it.

On 17 Mar 2019, at 17:14, KeesKemper notifications@github.com wrote:

I have found out that there was an error in the Action set from the msg.payload. But that should not be a reason to stop the complete nodered service. In that way it's very complicated to make a correction.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

KeesKemper commented 5 years ago

The wrong msg I had sent in was:

mlfunston commented 4 years ago

Ok have added some error handling for this and will publish it in the next release.

mlfunston commented 4 years ago

Updated in v1.0.8