logo elektroda
logo elektroda
X
logo elektroda

[Solved] Programming Smart Switch SW02-1 with Tasmota/Esphome style firmware (and RX1 cut trick)

lbelleboni 1158 3
ADVERTISEMENT
  • #1 20904698
    lbelleboni
    Level 3  
    This is one of the cheaper smart switches bought on Aliexpress.

    These are pictures of the manual:
    User manual of a smart switch from Aliexpress, featuring technical data and connection diagram.
    User manual of a WiFi smart switch from Aliexpress.
    The box:
    Smart switch box held in hand, visible feature descriptions. Box with a sticker containing a QR code and serial numbers. A smart switch box held in a hand, showing technical specifications.

    The smart switch:
    Circuit board and casing of a Wi-Fi smart switch.

    ADVERTISEMENT


    In order to program it, I soldered, as usual, TX1, RX1, GND, CEN; I was not able to use the 3.3v power supply from my USB/TTL converter due to the fact that probably the board uses too much current! I used an external 3.3v power supply connecting both GND together.

    Close-up of a smart switch PCB with soldered wires. Close-up of a circuit board from a smart switch with wires connected to specific points. Printed circuit board of a smart switch with connected wires. Close-up of a smart switch circuit board with connected probes.

    The communication doesn't start until I cut the RX signal from the board (it was very difficult!)
    Close-up of a circuit board with RX2 marking.

    but, after that, everything goes as per your guide. The automatic configuration works perfectly.
    Attached, you can find the JSON file.

    Thanks for your good job.
  • ADVERTISEMENT
  • #2 20904815
    p.kaczmarek2
    Moderator Smart Home
    You had to cut RX1 signal from the board because P10 (RX1) is used for a pair button that may have debouncing capacitor.

    It's the same situation as here:




    Btw, here is GPIO config:
    
    Device seems to be using CB2S module, which is BK7231N chip.
    - Relay (channel 1) on P8
    - WiFi LED on P6
    - TglChannelToggle (channel 1) on P24
    - Pair/Toggle All Pin on P10
    

    And here is OBK template:
    Code: JSON
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20905062
    lbelleboni
    Level 3  

    Probably I used the wrong "topic".

    My intention was to support the forum with a new device not in the device's list.
  • #4 20905102
    p.kaczmarek2
    Moderator Smart Home
    Sure, no problem, I have added your entry to the devices list:
    https://github.com/OpenBekenIOT/webapp/commit/9bcdca4e7551fb19b1f6268fb3b667c9b1347ce7
    Just please next time paste the JSON to forum topic yourself and fill all the fields. Thanks!
    Helpful post? Buy me a coffee.
ADVERTISEMENT