I recently purchased a Tuya Smart Plug with Power Meter in hopes I can reprogram it with my own firmware. I have done it several times in the past, but all those were ESP based. This time I got one that has a BK7231N chip in it. This is how I found this forum. I looked through and tried to find an existing template that I could use, but it turns out, that other people's smart plugs all came with a module, rather than a simple chip soldered on the board. Furthermore, the GPIOs used on my board are different from the ones already on the example list. After some board tracing and some help from the community, I finally have the correct config for this device.
Let's start with some product pictures:
My plug is advertised on a favorite Chinese online marketplace as a "Tuya European Graffiti Wifi Smart Socket Mobile Phone Timing Remote Control 16A with Electricity" -whatever that means. It comes with this ad:
A couple of more pics I took:
On the insides you can see that contrary to other similar plugs, this one does not have a module, just a simple chip:
Finally, here is the config that works for me:
Code: JSON
Log in, to see the code
If you are interested in further details on how I got to all of this above, I invite you to my blog where I have a detailed walkthrough to help you with the conversion.
>>21294132 Hi, I am looking for two pieces of information.
I have 3 pieces AUBESS Tuya WIFI Smart Socket 20A, 16A. I use them for more than 1 year, for testing.
Can I use it for an electric water heater/boiler 230V 1200W?
I suppose it has a relay because it clicks when I press the button.
Other question: Two of them are broken because when I plug them in, it keeps clicking and I can't see the wifi.
Can I fix it?
Thank you for your answer.
1200W/230V=5-6A (roughly), which means that a 20A relay should be able to handle it. However, you need to make sure that the relay used is indeed rated for 20A as in these cheap switches this is not always the case. Also, the PCB must handle that current.
I have had mixed experience in the past - some sockets withstood the high current tests, some didn't. You have to check it.
The other question: It's difficult for me to diagnose them from this much information. Of course, everything can be fixed. The question is: Is it worth the effort/money/etc? I would take them apart and see if there is anything obvious broken, e.g. a blown capacitor. Is there any info coming out of the debug port?
Remember to NOT use mains when experimenting with it...