-
Notifications
You must be signed in to change notification settings - Fork 589
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
Support unpublished DP "Mix Light" #1411
Comments
Same for me, I would also like to see the support of the Mix Light DP as well as "36":"Mix Light Scene". Compared to the description of @MooseV2 my situation is even worse, because with the current implementation I'm just able to switch the light on/off. Setting the brightness or color is completely impossible. { Does localtuya support the device category: xdd? |
For others coming to this fresh, my chandelier (sorry, I can't determine the model, Tuya Cloud says "x") wasn't using exactly these DP IDs, you can find yours via the instructions in this video. In my case, the critical IDs were: Then I configured the white entity on DPID 63 (instead of 20, which I'm not using at all) and continued as a typical light entity but left the color DPID blank, then I configured the color light on DPID 54, with Color Mode AKA Work Mode as 55, scene as 56, and color as 24. This gave me two entities, one for the white light and another for the color LED strip. This gives me plenty of control so I can automate the device as I please. I am having some trouble with the effects, sometimes setting them causes the device to crash, so I'm probably not quite configuring this correctly, but it's definitely a great start! |
I also have the same Light as @ironboy1 , via node red i can send the base 64 Code and it works great. |
Could you share your node red implementation? |
I have the same problem. Locally, the light only allow DP20 and DP51 (maybe 36). But brightness and other DPs won't work. I only can turn on or off the lights with Localtuya. I tried everything. I was very happy to read this post after I discovered the lights are fully controllable with DP51. But with limit knowledge about writing code I am stuck. I want custom light in Home Assistant, that by sending DP51 data, fully controls the light. Who has tips? :D |
I've had a lot of luck using this fork of localtuya for my multi lights. User experience is a little cleaner, dev is very responsive and my weird lights more or less work there, whereas they flat out don't work with this version. Might try switching and see if it's a better fit for your devices? |
I have a smart ceiling light model
clb035-wn-c38-k1-us-zgb
with support for both white light (brightness + temperature) and a secondary coloured light (brightness + colour). Using the default localtuya DPs I am only able to control one OR the other, ie setting brightness turns off the colour light, and setting colour turns off the white light.This light publishes the following DPs:
However, I was able to find more DPs through the Tuya Cloud:
Mix Light (DP 51)
The one I'm interested in is DP 51: Mix Light, because it allows FULL control of the light. The datatype is a struct comprising of 6 shorts and encoded to Base64
For example:
Decoded, that becomes
The bytes are as follows:
It would be handy to support this type of DP to improve the integration in Home Assistant
The text was updated successfully, but these errors were encountered: