logo elektroda
logo elektroda
X
logo elektroda

Clicking light switch with Wi-Fi without neutral wire - firmware change - ATLO-WB3-Tuya

p.kaczmarek2 1050 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Triple white wall switch with physical buttons and included mounting screws
    Do you like touch buttons? They are very easy to find in all sorts of modern devices today - including building automation systems. However, I myself am not a fan of them, which is why in this topic I will be showing a Wi-Fi enabled programmable switch based on classic, clickable buttons - the so-called microswitch. It will combine the traditional convenience of control with the possibilities of remote control over the network. The topic will, of course, focus on changing its firmware so that it will work 100% locally, without the manufacturer's cloud.

    One must start with the price. The 'triple' version was bought by a reader for £55. He then sent it to me along with the other devices so I could change the firmware. I uploaded our forum OpenBeken here.

    Let's move on to the packaging. The Bluetooth + Wi-Fi markings generally tell us that there is a Beken chip inside, but here it is only Wi-Fi alone that is mentioned.
    Blue-brown Wi-Fi wall switch box with phone image and “More Interesting Life” slogan Packaging of ATLO-WB3/K-TUYA triple smart light switch with Wi-Fi
    Inside is an on/off switch, instructions, screws, and a so-called 'adapter', which is effectively a capacitor. He is needed for operation without a neutral wire.
    Unboxed Wi-Fi switch kit with three buttons, an adapter, screws, and a user manual
    I have not yet seen this form of "adapter" housing:
    Wi-Fi switch kit: front panel, capacitor, screws, and printed manual
    The seller has printed the instructions in our language. Here we find out how to pair with the Tuya - there are two modes, 'EZ Mode' and 'AP Mode'. See the pictures for details:
    Triple Wi-Fi wall switch with Tuya Smart setup instructions in Polish Wi-Fi switch manual and three-button wall panel
    Declared power: 600W per channel.
    ATLO-WB3-TUYA Wi-Fi switch module with technical specifications visible

    So much in a word of introduction. Now it's time to look inside. We remove the front:
    Disassembled triple wall switch with exposed PCB, CB3S module, and microswitches
    So there's a Beken inside after all - the CB3S, or BK7231N.
    PCB with CB3S Wi-Fi module and three microswitches inside a wall switch housing
    The PCB designation is LSPS5CBA V1.1
    PCB with CB3S Wi-Fi module and three microswitches inside a switch housing.

    It is time to change the firmware.
    You need to have a USB to UART converter and solder four wires - 3.3V, ground, TX and RX. Follow the Flasher's instructions:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    You can also watch one of the videos on our Elektrod channel:



    CB3S leads:
    Bottom view of CB3S module with pin labels and dimensions in millimeters
    I start by adding flux to the pads:
    CB3S module mounted on green PCB labeled “High Voltage”
    Then I whiten them:
    CB3S (BK7231N) module mounted on green PCB labeled High Voltage
    Then I solder the wires (also whitewashed):
    CB3S module on green PCB with soldered signal wire and QR label
    I power the whole thing with 3.3V from an external LDO (I have a TC1264, but the AMS1117-3.3V is more popular), because 3.3V from a USB to UART converter doesn't have enough current capacity:
    Wi-Fi switch with CB3S board connected to a breadboard via jumper wires
    Reading the batch is done first - this allows the GPIO configurations to be discovered:
    BK7231 Flasher window showing GPIO configuration in JSON format and descriptive text.
    JSON Tuya:
    Code: JSON
    Log in, to see the code

    OBK template:
    Code: JSON
    Log in, to see the code

    Verbal description:
    Quote:

    Device seems to be using CB3S module, which is BK7231N chip.
    - Relay (channel 1) on P7
    - Relay (channel 2) on P8
    - Relay (channel 3) on P9
    - WiFi LED on P6
    - Button (channel 1) on P14
    - Button (channel 2) on P26
    - Button (channel 3) on P24

    Copy of the batch:
    https://github.com/openshwprojects/FlashDumps/commit/9cef537926b7cda08ca00d9e4b7995e6b9ff14d4
    Instructions for importing the template:



    Pairing with HA:




    It is now also possible to script the buttons so that, for example, the. publish click, long press or double-click events to Home Assistant:
    Button actions Multiple press and hold etc

    I didn't take photos of the performance part, but it was similar to the one for the other "silent" switch:
    ATLO-TB2-TUYA - silent dual light switch with Wi-Fi control under Home Assistant

    In summary , changing the firmware was very straightforward. There was no problematic T34 chip in the LGA chassis that has to be soldered out with hot air. There was also no need to cut off the RX and TX - just solder and go.
    I could still show the inside of the 'adapter' - but this has already appeared on our forum:
    https://www.elektroda.pl/rtvforum/topic4115589.html#21506592
    Do you also prefer "clickable" buttons instead of the ubiquitous tactile ones?

    PS: Copy of the batch: https://github.com/openshwprojects/FlashDumps/commit/09aea45fcd8c60ca397c716bb47f6c1a187ca988

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 13916 posts with rating 11715, helped 629 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21779534
    hawryszka
    Level 12  
    Hi,
    Could you give a picture from the other side of the board, what are the actuators there ?
  • ADVERTISEMENT
  • #3 21779539
    p.kaczmarek2
    Moderator Smart Home
    I didn't take photos of the performance part, but it was similar to the one for the other 'silent' switch:
    ATLO-TB2-TUYA - silent double light switch with Wi-Fi control under Home Assistant
    There are no relays there, so the product is silent.
    Helpful post? Buy me a coffee.
  • #4 21781016
    bsw
    Level 21  
    BTW:
    I have almost the same switch (but with the "N" terminal).
    What I don't like is the backlighting. When it's off it's blue and when it's on it's red - except that the blue doesn't go out so it comes out a dreaded filet-pink....
    I partially solved the problem by taping the diodes with a strip of black insulation....
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21782138
    p.kaczmarek2
    Moderator Smart Home
    Sometimes the backlight is on separate GPIO pins and can be controlled as desired, but here it's together with the relay as far as I can see. All you can do is jam or fiddle with the soldering iron - make jumpers and move the signals to the free GPIO CB3S, etc, or remove one of the diodes, etc.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 21782154
    bsw
    Level 21  
    p.kaczmarek2 wrote:
    or combine with a soldering iron - make jumpers and move the signals to the free GPIO CB3S, etc, or remove one of the diodes, etc.

    Rather, change the colour of the diodes to a less flashy colour, and reduce the resistor values of these diodes by a factor of 3 - so that the room is illuminated by the lamp and not the switch....
    Helpful post? Buy me a coffee.
  • #7 21783034
    metalMANiu
    Level 21  
    I have an identical connector, but for a battery. It has worked for almost 5 years now without replacement.

    bsw wrote:
    reduce

    Or increase 😉
  • #8 21784610
    austin007
    Level 17  
    bsw wrote:
    and reduce the resistor values of these diodes by 3 times - so that the room is illuminated by the lamp and not by the switch...

    Rather increase, although not that much.
📢 Listen (AI):
ADVERTISEMENT