Moes 2 GAND Wall Switch - Aliexpress https://pt.aliexpress.com/item/10050036040138..._main.136.24a4caa4WAcIDy&gatewayAdapt=glo2bra
Connect the programmer's direct 5v USB output to the power supply module to the pin labeled "+5v" and the negative to GND (red and blue wire).
Connect RX and TX (green and white wires)
Yellow wire is CEN to activate writing mode.
Program to use is: bk_writer1.60 : https://github.com/openshwprojects/OpenBK7231...a220b19018c2e0a80c130df1c38/bk_writer1.60.zip
Firmware File: OpenBK7231T_UA_1.15.162.bin https://github.com/openshwprojects/OpenBK7231T_App/releases/tag/1.15.162
load the firmware in the software and click on programm, you have 15 seconds to put it in programming mode, taking the yellow wire ( CEN ) and finding it on the GND wire. this connection has to be very fast, less than a second.
if it goes well the program starts to program the new firmware.
Creat File on Filesystem menu "autoexec.bat" and save comands:
Home Assistant Discovery configure:






Connect the programmer's direct 5v USB output to the power supply module to the pin labeled "+5v" and the negative to GND (red and blue wire).
Connect RX and TX (green and white wires)
Yellow wire is CEN to activate writing mode.
Program to use is: bk_writer1.60 : https://github.com/openshwprojects/OpenBK7231...a220b19018c2e0a80c130df1c38/bk_writer1.60.zip
Firmware File: OpenBK7231T_UA_1.15.162.bin https://github.com/openshwprojects/OpenBK7231T_App/releases/tag/1.15.162
load the firmware in the software and click on programm, you have 15 seconds to put it in programming mode, taking the yellow wire ( CEN ) and finding it on the GND wire. this connection has to be very fast, less than a second.
if it goes well the program starts to program the new firmware.
Creat File on Filesystem menu "autoexec.bat" and save comands:
startDriver TuyaMCU
setChannelType 1 toggle
linkTuyaMCUOutputToChannel 1 1 1
setChannelType 2 toggle
linkTuyaMCUOutputToChannel 2 1 2
Home Assistant Discovery configure:
mqtt:
switch:
- unique_id: "Interruptor_Quarto_Leonor_relay_1"
name: "Interruptor_Quarto_Leonor 1"
state_topic: "Luz_Quarto_Leonor/1/get"
command_topic: "Luz_Quarto_Leonor/1/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "Luz_Quarto_Leonor/connected"
- unique_id: "Interruptor_Quarto_Leonor_relay_2"
name: "Interruptor_Quarto_Leonor 2"
state_topic: "Luz_Quarto_Leonor/2/get"
command_topic: "Luz_Quarto_Leonor/2/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "Luz_Quarto_Leonor/connected"
Cool? Ranking DIY