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
Add support for 8 Functions String Light Control Adaptor #1630
Conversation
- Avoid names starting with numbers, as they may have problems in some obscure places - use branding in product name - use light effect for mode instead of a separate select entity - remove scale from brightness as it is no longer needed (make-all#1444)
Hey @make-all thanks for merging this :)
Below is the error log
Also seems we need to keep
otherwise I get the following errors
|
You have installed the config into an older install of tuya_local. The brightness change needs the latest HEAD. |
I think the "TypeError: unsupported operand type(s) for |: 'list' and 'set'" error is the same HA 2024.2.0 problem that was fixed in the Tuya Local 2024.2.0 release, so both these should be OK in the latest HEAD. |
I've updated to latest version. |
Wait scrap that. I restarted HA and it's all working now. Thanks so much for your help! All working perfectly now. |
Your second to last comment above is expected if you install this config on the latest release (Tuya Local 2024.2.0) |
Yes HACS does sometimes seem to take a while to notify me of new Tuya-Local updates. I manually downloaded the custom_components folder and pasted it into my HA install. So I suppose I'm technically running Tuya Local 2024.2.1 beta. |
Information about DPS mappings
Product
Information about how the device functions
https://www.realchristmastrees.com.au/wifi-tuya-app-control-adaptor
The device is ambiguously labelled Wifi Tuya App Control Adaptor. It allows smart control of 2 wire single colour string lights. It's by the brand Lexi Lighting.
This is scene_combine. I left them all on in the scene.
In addition to setting the brightness, you can also set the speed of the modes/effects. 1st dot is slowest, 4th dot is fastest. The circular arrow icon means it will loop through all 4 speeds.
Steady On is simply on with no effects.
Music mode uses your phones speaker to affect the lights. There are three modes, 1,2 & 3. It seems the higher numbers sustain the noise effect to the lights for longer.
Possible improvements
I'm not sure what
scene_factory
,music_data
orcontrol_data
does.Each scene value also contains the brightness and speed. That's why I created multiple speed options for each scene. Based upon what you said here #309 (comment). It would be nice if there was some way to have another input to select the speed, then simply select the scene.
I've also noticed when the brightness gets adjusted via the Tuya Smart Life app it doesn't update in Home Assistant. All the scenes I made are 100% brightness. If it isn't currently set to 100% brightness and I select a scene, it does in fact go to 100% brightness, but the value doesn't update in Home Assistant. It does show the correct brightness in Smart Life.