logo elektroda
logo elektroda
X
logo elektroda

[CB3S/BK7231N] AVATTO TS02-EU-W3 light switch (triple version)

p.kaczmarek2 2103 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Disassembled AVATTO TS02-EU-W3 light switch with internal module visible.
    Today, as standard - we change the light switch firmware at the reader`s request. I flashed a few more switches from this series, but here I will put the flashing instructions and a template for one piece. Thanks to the software change presented here, this switch will be able to work 100% locally, without the cloud, without the manufacturer`s servers and will be compatible with Home Assistant.

    Purchase AVATTO TS02-EU-W3
    The switch can be purchased for PLN 50, which is quite a good price for a version with three relays:
    Official purchase offer of the Avatto TS02-EU-W3 WiFi Touch Light Switch on the Avans online store.
    Packaging:
    Box with information about downloading the Smart Life app. Box of AVATTO touch switch.
    Let`s see what we get in the set:
    Back view of the AVATTO TS02-EU-W3 light switch with port labeling. AVATTO light switch set with instructions and accessories on a table.
    We usually change the firmware in this section, but if you want to use the manufacturer`s apk, here are the instructions:
    Smart light switch user manual showing installation steps and wiring diagrams. User manual for AVATTO TS02-EU-W3 light switch showing device addition and voice control instructions.


    Interior of AVATTO TS02-EU-W3
    We question the front:
    Interior of AVATTO TS02-EU-W3 light switch with visible CB3S module.
    There is a CB3S module inside, you can upload https://github.com/openshwprojects/OpenBK7231T_App
    On the back of the PCB you can also see the button controller:
    Interior of AVATTO TS02-EU-W3 switch with visible electronic components.
    This chip is ADS TS04 2052:
    Circuit board with a module and electronic components.
    This time the AMS1117-3.3V is not on the front board, but together with the power supply, which here is based on OB25133JP:
    Close-up of the internal components on a circuit board. Interior of the AVATTO TS02-EU-W3 switch with visible electronic components on the PCB. Close-up of a circuit board with several electronic components, including OB25133JP. Close-up of the circuit board inside the AVATTO TS02-EU-W3 switch.
    so we have an isolated flyback converter here, this is quite typical in this type of switches, and in "smart switches" (modules) I often see non-isolated step down converters:
    Typical application schematic for OB2513x isolated converter

    AVATTO TS02-EU-W3 programming
    According to the readme of our flasher:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    You can also check out the Elektroda channel, there are flashing video tutorials:
    https://www.youtube.com/watch?v=Yb3zXtBdSnE&list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM&index=7
    CB3S documentation is available online:
    https://developer.tuya.com/en/docs/iot/cb3s?id=Kai94mec0s076
    We solder four wires:
    Close-up of a circuit board with wires soldered to a module
    Here`s my whole layout:
    Workbench with a circuit board connected to a breadboard with wires
    Flasher is able to correctly load the Tuya configuration:
    Screenshot of Tuya configuration for AVATTO TS02-EU-W3 device.
    Code: JSON
    Log in, to see the code

    2MB copy of the batch:
    https://github.com/openshwprojects/FlashDumps/commit/54d00ea1ed2031dba8180b3e7fb0b14181a91026
    OBK template:
    Code: JSON
    Log in, to see the code

    After such configuration, it can be connected, for example, to Home Assistant : :





    Summary
    Simple and pleasant flashing, even simpler than in the case of ESP8266, because here we soldered only 4 and not 5 cables, and in addition, the configuration was decoded by my flasher. Now you can connect this switch with Home Assistant or ioBroker as we showed in our tutorials on the Elektrody channel:
    https://www.youtube.com/@elektrodacom
    If you have any questions or problems with changing the load, I will be happy to help.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 12319 posts with rating 10206, helped 583 times. Been with us since 2014 year.
  • ADVERTISEMENT
ADVERTISEMENT