Thanks Suggsy and klib , I’ve just bought 3 of these devices particularly for the remote temperature sensor and can’t get to work. Your post is exactly what I needed and I’ve installed the “quirk” but I can’t get it to work either.
On reboot HA reported an error in the quirk filepath so I added 2 spaces before the second line in the configuration.yaml file so it now looks like this and the error on reboot has gone, but I’m not sure if the quirk is loading correctly.
I created an account here just to thank you for this quirk. A lifesaver.
I also changed the line 93 to: DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
This changes the relay from light switch to a generic switch. If needed, it can be easily converted back to light (or whatever) in the device config in HA, but as a light, it’s not that easy to convert it to anything else.
Anyone has instructions on how/where to submit this and make it official?
You downloaded a text version of a python files, so it won’t be recognised. You need to rename the file from .txt to .py for it to have a chance of being picked up.
Glad my quirk helped you, and you’re absolutely right, it is better configured as a switch than as a light. For me it didn’t matter but it’s neater your way.
Has anyone tried this device in the native Tuya ecosystem? Does the little light indicate on/off state of the switch or is it always on as with ZHA? If it is the former maybe i can try and adopt the quirk for this as well using TuyaZBOnOffAttributeCluster.
After a bit of research, it looks like the indicator light it not meant to show the status of the relay/switch. Apparently it’s a network connectivity indicator.
On the other hand, there are some settings available in the Tuya app that would be nice to have in HomeAssistant (ZHA). Units, calibration, sensitivity, restart status, child lock… Time to read some ZHA documentation