subzero79 / node-red-contrib-tuya-local

NodeRED node to control tuya devices locally. Based on tuyapi module
29 stars 17 forks source link

Doesn't support multiple param #17

Open slombard3000 opened 4 years ago

slombard3000 commented 4 years ago

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

subzero79 commented 4 years ago

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 ?

slombard3000 commented 4 years ago

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.

subzero79 commented 4 years ago

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 commented 4 years ago

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

slombard3000 commented 4 years ago

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

drcommons commented 4 years ago

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