node-red-contrib-tuya-local icon indicating copy to clipboard operation
node-red-contrib-tuya-local copied to clipboard

Doesn't support multiple param

Open slombard3000 opened this issue 5 years ago • 6 comments

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' }" }

slombard3000 avatar Dec 03 '19 14:12 slombard3000

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 ?

subzero79 avatar Dec 03 '19 21:12 subzero79

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.

slombard3000 avatar Dec 03 '19 23:12 slombard3000

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.

subzero79 avatar Dec 04 '19 00:12 subzero79

Also check the keys are correct, is 20 the on/off?

subzero79 avatar Dec 04 '19 00:12 subzero79

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' }" }

slombard3000 avatar Dec 04 '19 01:12 slombard3000

I managed to use this node with a device (RGB Bulb) that accepts multiple attributes using the same format as slombard3000

drcommons avatar May 07 '20 12:05 drcommons