I have the orange coloured Diivoo water timer with 2 valves. When I add it to Tuya integration, there is only one switch which controls the left valve.
I looked at Tuya developer link and added the device to it and there is only one switch, how does the app control both valves ?
Code from switch.py
# Smart Water Timer
"sfkzq": (
SwitchEntityDescription(
key=DPCode.SWITCH,
translation_key="switch",
When I restarted HA I can see the old integration entry failed to bet setup, so I created a new one. When I did that I see the device, but the switch is not controllable, and the diagnostic valuse are all still unavailable.
where there any other suggestions involved it getting this to work?
I have tried replacing this portion of code with your modified code, adding the ‘switch_2’ portion.
On rebooting and adding the Tuya integration I do now see Switch 1 and Switch 2 for the water timer, but both switches report unavailable and do not respond to any input.
sfkaq was a typo, now fixed.
you said you rebooted and added Tuya integration, if you make changes then add the integration,this will overwrite what you modified.
Please follow the steps as I posted them, this is not for the builtin tuya.
I stopped using this integration and using Tuya Local instead.
If you want this one fixed, you need to contact the developer of this integration (I only added a device)