-
Notifications
You must be signed in to change notification settings - Fork 414
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
New device request: "Smart Color String Light" #255
Comments
Are you able to capture the local data? In particular the colour_data (24) field, as the Json type is rarely sent as Json on the local protocol. |
Hi @make-all, where can I find this info for you, in the developer portal? |
No the developer portal is showing only the cloud data. If you attempt to add the light to the tuya-local integration, there should be a warning level log message in the home assistant log telling you that an exact match cannot be found for your device, and showing the local data received from the connection attempt. |
I see this, not sure if it's helpful?
|
Unrelated, but I also see this, do you need a bug report?
|
On the config error, thanks, that was not flagged up by the tests for some reason. No need for a separate report. The local info above is enough thanks. There are already a couple of bulbs supported, so I will compare the format with those, I think one will match the colour data format (the scene data I do not try to support, as it is not directly supported by Home Assistant, so scenes will just switch to the existing config, with no way to change that scene config from HA). |
Since the range given for work mode is white, colour, probably scenes won't be supported at all, although I see in the local data log the work mode is set to "scene9" and there is an additional dp 101, which I think is the scene data. |
Anything else I can provide to help get working scenes? Really appreciate the help. |
If you can capture all the possible values of dp 21 somehow it will help. Tuya devices generally only support one local connection at a time, so you might need to switch off WiFi on your phone so the app is controlling the light through the cloud. On the Home Assistant side, you can either turn on debug logging for custom_components.tuya_local.device by adding the following to config/configuration.yaml:
or, keep adding the device to the tuya_local integration each time you change the mode from the app and cancel out before finishing the setup, to get the warning level message that is only emitted when the device is added. |
@make-all as I cannot currently add this device in HA, I assumed that HA is no use to capture this? I can certainly change the scene and then try and re-add each time (sounds painful!)...? |
For now, I think the device can be added without these scenes, would rather have something sooner. I'll work to find the scene data :) |
category: diagnostic was in there twice fro the sleep switch. Mentioned in comment on issue #255
If I search for "smart color string light", I get a lot of hits for Atomi branded lights - is it this one? |
Hi @make-all, Initial tests are not successful, although some things work:
What can I do to help resolve this? Thank you for integrating this so quickly, really appreciate it. |
Update: It appears like the lowest brightness possible is 10. To test this I set 1% in the Tuya app, this corresponds to 10% HA. Setting it below 10 in HA has no effect. |
The range for brightness is 25 to 255 (10% to 100%), which is as documented in the portal info you sent. Maybe it will work better if I allow it to be set below 25, since there doesn't seem to be any adaptation in the UI to the minimum limit. But it may cause the light to go haywire again. |
This should avoid the popup message in HA rejecting settings below 10% if the light can handle it. Issue #255
It seems the white brightness / temp and different to the RGB colour / brightness / saturation. Is it possible to have separate controls? Currently I don’t see any controls for the RGB side of things...
… On 31 Oct 2022, at 12:33, Jason Rumney ***@***.***> wrote:
The range for brightness is 25 to 255 (10% to 100%), which is as documented in the portal info you sent. Maybe it will work better if I allow it to be set below 25, since there doesn't seem to be any adaptation in the UI to the minimum limit. But it may cause the light to go haywire again.
Scenes I did expect to work, based on the video they are all fixed patterns except for the "pick 2" one, so I expect that just selecting them should be enough. But they might not be in the right order, so some matching between the Tuya app and Home Assistant may be needed.
—
Reply to this email directly, view it on GitHub <#255 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHUTFOE2KWMU2FRQOIW42LWF64C3ANCNFSM6AAAAAARP7QJ7E>.
You are receiving this because you authored the thread.
|
I just made some changes that should fix the colour mode. If you want to test them, open Tuya Local in HACS, and select "Redownload" from the top right menu. Then for version, select "main". |
A fixed version of the config was released a couple of versions back, and I think all the above issues have been addressed. If there are still issues, please open a new issue, as this thread has become very long so difficult to work out what is not done yet. |
Hi, I have a new request for "Smart Color String Light" to be added.
This is the payload from the Tuya developer portal:
The text was updated successfully, but these errors were encountered: