Short the IO0 pin and Ground pin to enter in flash mode.
Use this template:
{"NAME":"XY-WPCL","GPIO":[0,0,320,0,0,224,0,32,160,0,0,0,0,0],"FLAG":0,"BASE":18, "CMND":"SO114 1 | Pulsetime 10 | SwitchMode1 2"}
In Home assistant use this template
switch:
- platform: template