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
switches:
camaras_salon:
unique_id: "CamarasSalon"
value_template: "{{ is_state('binary_sensor.switch1', 'on') }}"
availability_template: "{{ not is_state('binary_sensor.switch1', 'unavailable') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.pcswitch_cam
turn_off:
service: switch.toggle
target:
entity_id: switch.pcswitch_cam
icon_template: >-
{% if is_state('binary_sensor.switch1', 'on') %}
mdi:power-plug
{% else %}
mdi:power-plug-off
{% endif %}
Sources:
blakadder/templates#1472 (comment)
https://templates.blakadder.com/sinilink_XY-WPCL.html
https://templates.blakadder.com/sinilink_XY-WPCE.html