LSC LED strip 5 meter RGBIC+CCTIC (lsc_rgbcct_ledstrip): Color temperature not working
Description
Whenever I try to use the color temperature setting in HA, the device (LSC LED strip 5 meter RGBIC+CCTIC / lsc_rgbcct_ledstrip.yaml) doesn't respond, but is stuck in the previous setting. If I change to a "real" color, it works fine. If I change to a white color via the Tuya App, it works. If I then try to change the brightness of the white color via HA, it does NOT work.
According to the yaml (lsc_rgbcct_ledstrip.yaml) color temperature should be available through DP 23. If I check the Tuya Developement Console, DP 23 is never used if i change the color temperature via the Tuya app. Instead DP 24 is used. According to the yaml (lsc_rgbcct_ledstrip.yaml) brightness should be available through DP 22. If I check the Tuya Developement Console, DP 22 is never used if i change the brightness in "white mode" via the Tuya app. Instead DP 24 is used.
When using "full" colors, the format of DP 24 is usally 2 bytes (4 digits hex) "hue", 2 bytes (4 digits hex) "saturation", 2 bytes (4 digits hex) "value". When using "white" colors, the format of DP 24 changes to 2 bytes (4 digits hex) "brightness" [range 1 -1000], 2 bytes (4 digits hex) "color temperature" [range 0 - 1000 with 0 being "warm" and 1000 being "cold"], 2 bytes (4 digits hex) being zero (0000). [I identified those new values by playing with the settings and checking the logs in the Tuya Developement Console]
I also own the LSC smart 10M ledstrip RGBIC + CCT. If I try to control the color temperature on THAT device or if I try to control the brightness in "white mode" via HA, it works perfectly. But in THAT case DP 23 is being used by Tuya for color temperature and DP 22 is used for brightness when I check the Tuya Development Console.
Steps to reproduce
A:
-
Trying to change the color temperature of the device via HA.
-
Device does NOT respond.
-
In Tuya developement console: DP 21 changes to "white". Nothing else (even though a change of DP 23 is expected).
-
Trying to change the color temperature via Tuya App.
-
Device does respond.
-
In Tuya developement console: DP 21 changes to "white". DP 24 changes, but uses an unusual format.
B:
-
Device is set to a "white" color via the Tuya App.
-
Trying to change the brightness of the device via HA.
-
Device does NOT respond
-
In Tuya developement console: no changes in the logs (even though a change of DP 22 is expected).
-
Device is set to a "white" color via the Tuya App.
-
Trying to change the brighness via Tuya App.
-
Device does respond
-
In Tuya developement console: DP 24 changes, but uses an unusual format.
Expected behaviour
Device changing to "white mode" and displaying white light with the correct color temeperature when selected in HA.
Device changing brightness when in "white mode" and when brightness is changed via HA.
Additional context
First time posting here. Please be kind. ;-)
Confirmation
-
[x] I am sure this is a bug or improvement, that is well enough described that it can be implemented.
-
[x] This report is for tuya-local, not for localtuya.
-
[x] If this is for a specific device, the device config filename is mentioned above, or diagnostics are included.
-
[ ] Log messages or diagnostics relevant to the issue are included.
-
[ ] This is not requesting addition of a new device.
I don't think this device can be supported.