Hoping someone can assist me in getting the rest of the functionality working on a Tuya based motion switch.
Link to yaml I’m trying to get working. I grabbed everything from a config I found on Reddit, but only relay (datapoint 1) and turning white LED off (datapoint 15) is working). Motion doesn’t work for on or off. Here is what the Tuya module advertises:
Yep, got it working. It would appear some of the settings don’t do anything, and I can’t get the motion switch to only turn on when dark (althought I didn’t test that on the Tuya firmware either).
To flash with ltchiptool:
Connect GND to RST, GND and CEN
Connect TX to RX, RX to TX
Connect 3.3v to 3.3.v
You might need to touch CEN to GND and hold it or just touch it once after it boots.
Use this as a template (you can download it locally and customize):
Thanks. I have a number of the old version but none of the one’s that use Tuya. How did you find what functions the data points did? Am concerned about flashing these and not have a workable switch. From what I can tell, without have correct code the switch doesn’t even work. Not like the old ones where a button was wired to activate the relay. Is this what you are finding?
Someone from the OpenBeken project scraped the info from the Tuya API. The manual button works without issues. The PIR sensor works with my YAML without changing any settings. You can customize after that. They are solid for me now.
Thanks for the update. For now, I think I’ll stay with “Local Tuya”. Which I saw was going to be integrated into HA Core. Very easy to setup and works without any cloud connection.