node-red-contrib-tuya-local
node-red-contrib-tuya-local copied to clipboard
Doesn't support multiple param
The below is taken from the API guide but doesn't seem to do anything. Not even an error.
{ "multiple": true, "data": "{'20': true,'2': 'red' }" }
I only had single tuya switch to test this. Have to check the code again. Have you tested this already in a tuyapi nodejs script ?
So I am guessing my smartlife lights didn't support this the best I can tell.
I am able to turn on/off, set colors, and scenes so I extremely please as the other node-red-contribs didin't work.
I'm thinking you can close this.
Looking at the code I did add support for multiple as per tuyaapi. Try as I said a nodejs script to send multiple, maybe the structure is wrong.
Also check the keys are correct, is 20 the on/off?
yes, 20 is on/off
These values are known good by themselves. I expect the device has no use for multiple inputs on this device. { "multiple": true, "data": "{'20': true,'24': '00da03e803e8' }" }
I managed to use this node with a device (RGB Bulb) that accepts multiple attributes using the same format as slombard3000