KERUI WD3 WIFI Door Alarm (ESP 8285 chip)

Hello,

I have a KERUI WD3 WIFI Door Alarm : https://www.aliexpress.com/item/1005003937020367.html

I opened the unit and found out that it uses an ESP 8285 chipset.
Anybody can help on how I could flash it with ESPhome and control it through HA?
Which of the 4 pin holes should i use for Vcc GND and TX and RX ?

Thanks for the help.