andrei-tatar/node-red-contrib-nora

v0.0.34 json acceptation different?

Opened this issue · 2 comments

After updating to v0.034 I do get many errors on json commands:

For instance a switch with JSON input:

The simple JSON input inject is:

{"ACTION ":"WRITE","ROOM":"LIVING","SCENE":"1"}

Error: Invalid property msg.payload.ACTION with value WRITE

How can I solve this?

It's because it's an invalid message object for the node. I will add an option to disable the error messages but you might as well not send them to the nora nodes.

The validation criteria was pretty much the same, it's just that the errors are visible now.

I indeed do see the command does still work fine.

My system does use JSON to carry out commands. How should the JSON then look like? Or should I not use JSON?