Mixed colour/white mode Tuya lamp #194
-
I am able to adjust the parameters of a Tuya "Type B" ceiling lamp from Tuya IoT platform by sending the following JSON:
However trying to send the same command as payload using Tinytuya switches the lamp either to white or to colour mode:
It seems that the lamp works in two modes and is not possible to send one command that adjusts RGB as well as white light at the same time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I have managed to solve this problem in the following way. After successfully sending the instruction we go to the Device Logs section and see there a new Adjustment record. Now, from python script we can adjust the lamp brightness, temperature, and RGB parameters in one line of code:
'28' is Debugging mode DPS ID Despite this code is working fine, in Pycharm I get warning that However, it is still not clear how to generate such a string with parameters like brightness, temparature, RGB color etc. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
For anybody interested, this is the way to send mixed light scene commands (white LED and colour LED are controlled at the same time). I have made the illustration below to show how differerent parameters are encoded in control string:
Tested with Torkase Alexa Smart Ceiling Light, 35 W 2400 LM WiFi Dimmable Ceiling Light Controllable via App
However, the
'28'
"debugger" DPS is useless once theswitch_led
parameter is set toFalse
, for example, after thecountdown
timer fires. The lamp becomes unresponsive.After some experimenting with Smart Industry App and looking in the debugging logs on Tuya IoT Platform, I have found 2 extra, non-documented DPS
36
for Mix Light Scene and51
for Mi…