logo elektroda
logo elektroda
X
logo elektroda

Flashing ESP8285 Chip on 10A Smart Breaker from AliExpress with ESPHome Configuration

donut343 1614 2
ADVERTISEMENT
  • #1 21113137
    donut343
    Level 2  
    This is a 10A smart breaker that I got off AliExpress. It has an ESP8285 chip inside for which the GUI flashing tool didnt work, nor did cloudcutter. Software I believe was 1.1.8 but I have no way to check anymore and I forgot to write it down!

    To flash the chip, I desoldered it from the pcb and connected rx, tx, 3.3v, gnd and gpio pins to a usb-uart ttl converter. I tried flashing without desoldering but think the capacitors messed up the timings..

    I flashed the chip with EspHome using the EspHome wizard (see https://esphome.io/guides/getting_started_command_line.html) and extensive esphome docs to guide me. Finally, I flashed the following config.yaml after some trial and error to get the relay, button and wifi-led set up:

    
    esphome:
      name: smartbreaker1
    
    esp8266:
      board: esp8285
    
    # Enable logging
    logger:
    
    # Enable Home Assistant API
    api:
      password: ""
    
    ota:
      password: ""
    
    wifi:
      ssid: "
      password: ""
    
      # Enable fallback hotspot (captive portal) in case wifi connection fails
      ap:
        ssid: "Smartbreaker1 Fallback Hotspot"
        password: "BS8reTB8GQtJ"
    
    captive_portal:
    
    # Relay switch
    switch:
      - platform: gpio
        name: "Smart Breaker Relay"
        pin: GPIO12
        id: relay
    
    # Wifi-LED pin
    status_led:
      pin:
        number: GPIO4
        #inverted: true
    
    # Button pin
    binary_sensor:
      - platform: gpio
        name: "Smart Breaker Button"
        pin:
          number: GPIO13
          mode: INPUT_PULLUP
        on_press:
          then:
            - switch.toggle: relay
    



    Box of a smart breaker from AliExpress with function icons.
    Dismantled Wi-Fi smart switch with a maximum load of 10A. ESP8285 smart switch module on a PCB with the label AJW-02_8285. Close-up of the internal side of the smart switch circuit board. Close-up of a circuit board with soldered wires.
  • ADVERTISEMENT
  • #2 21113235
    p.kaczmarek2
    Moderator Smart Home
    That's a very interesting module, is it TYWE2S? It doesn't look like so. What's the marking on the front of it?
    Helpful post? Buy me a coffee.
  • #3 21114089
    donut343
    Level 2  
    So this module doesn't really have a marking:
    Close-up of an electronic module with the ESP8285 chip and unreadable markings.


    The chip itself says esp8285 and the rest I cannot really read! If you Google AJW-02_8285 you can find some more info though
ADVERTISEMENT