andrei-tatar / node-red-contrib-nora

Node Red Google Home integration
74 stars 25 forks source link

v0.0.34 json acceptation different? #75

Open TonKro opened 4 years ago

TonKro commented 4 years ago

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?

andrei-tatar commented 4 years ago

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.

TonKro commented 4 years ago

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?