Tuya LED Strip lights & Brightness All questions

Hi there, I'm new to sequematic but already loving it - amazing work. 

Are you able to tell me if its possible to control the brightness value of a Tuya Smart Device (specifically a Smart Life LED Strip)?

Many thanks!

Matt 

Asked by Matt on March 28, 2021, at 6:24pm (edited on March 28, 2021, at 6:25pm)

Hi Matt. Unfortunately all Tuya devices are created differently so results can vary. I'm assuming your device Office light LEDs is an LED strip?  If so, I think you might be able to use the control_device property then set the brightness using the JSON below (this will go in the value field when setting up the step):

{"commands":[{"code":"control_data","value":{"change_mode":"direct","bright":500}}]}

Bright should be a value between 0 - 1000.  And apparently change_mode can be either direct or gradient - I assume this affects whether the brightness changes immediate or gradually fades.

You can find more about there here in the Tuya API docs.

Let me know how you get on and if it doesn't work I'll see what else I can find.

Hi Derek, thanks for your super fast reply (and sorry for my very slow reply!) 

You're right that they're an LED strip, but no luck unfortuantely. The example code in the API documents doesnt trigger a response either. 

Many thanks 

Hi Matt, sorry I think I gave you the wrong advice above.  SEQUEmatic automatically builds out part of the JSON so only the following needed to be added in the step:

{"change_mode":"direct","bright":500}

I've updated your sequence so can you give it another try and let me know the outcome?

Post a reply

The SEQUEmatic bot is still new and learning. If you don't get the answer you need, just ask to speak with Derek and your chat will be transferred.