Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't support multiple param #17

Open
slombard3000 opened this issue Dec 3, 2019 · 6 comments
Open

Doesn't support multiple param #17

slombard3000 opened this issue Dec 3, 2019 · 6 comments

Comments

@slombard3000
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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

@slombard3000
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants