Skip to content
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

feat(add): support Tuya _TZ3210_bfwvfyx1 as TS0505B #8361

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

will-tm
Copy link
Contributor

@will-tm will-tm commented Nov 23, 2024

Description

This Pull Request adds support for Tuya 15W led light bulb E27 RGBCW from AliExpress.
There is currently no support for _TZ3210_bfwvfyx1 fingerprint which causes this devices to be defaulted to TS0505B_1 whose implementation is barely compatible and unable to properly control color.

Untitled

Additional Info

In order to just get the color working _TZ3210_bfwvfyx1 could just be added to TS0505B_2 supported fingerprints but this new device accepts a color temperature range from 50 to 1000 instead so I took the initiative to give it its own definition.

@will-tm will-tm force-pushed the feature/add_TZ3210_bfwvfyx1_support branch from bb53016 to f5e3c38 Compare November 23, 2024 17:04
@will-tm will-tm force-pushed the feature/add_TZ3210_bfwvfyx1_support branch from f5e3c38 to 99fdbf3 Compare November 23, 2024 17:09
src/devices/tuya.ts Outdated Show resolved Hide resolved
@Koenkk Koenkk merged commit e4c0956 into Koenkk:master Nov 24, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Nov 24, 2024

Thanks!

Could you also submit a picture for the docs? This can be done by:

  1. Create a fork by clicking here
  2. Go to the public/images/devices directory, Add file -> Upload files
  3. Upload the files and press Commit changes
  4. Press Contribute -> Open pull request -> update title/description -> Create pull request

Make sure that:

  • The filename is TS0505B_4.png
  • The size is 512x512
  • The background is transparent (use e.g. Adobe remove background)

@will-tm
Copy link
Contributor Author

will-tm commented Nov 24, 2024

Will do, thank you for merging!

@will-tm will-tm deleted the feature/add_TZ3210_bfwvfyx1_support branch November 24, 2024 22:14
@HDHristov
Copy link

Hi.

Prior to this addition, the bulbs were recognized as some sort of generic led controllers. This had the negative side effect that the color temperature range was limited.
Few things have changed with this addition:

  1. Color temperature range is extended, but the color temperature in Kelvin doesn't match the actual color temperature.
  2. There is no more a "transition time" setting in the Settings (specific) tab in z2m. I don't know if this disappeared from this particular addition or due to some other change.
  3. There was some (limited) support for effects, which is now missing.

@HDHristov
Copy link

I've been struggling with this for a couple of days, but I can't get it to work.
Either I lose proper transition support or I lose brightness control at low levels (the light won't turn on at less than 15-20%)
The current implementation handles brightness perfectly, but it lacks in the transition department. Lights can still transition, but scenes and manual control in HA are instant (or fixed to whatever is set in light_profiles.csv, which is not ideal).
Using it as a tuya light, for example with tuya.modernExtend.tuyaLight, fixes the transitions, but breaks low brightness levels.
I'm hoping for someone knowledgeable to step in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants