SONOFF Micro - 5V Wireless USB Smart Adaptor

Much simpler than the one I made last year.

@jschwerdlin & @gaz99

very advanced flashing utilities you got there :muscle:

Iā€™m always going the low-tech/low-effort way and just ask for one or two helping hands :open_hands:

For the sinilink device I actually just used dupont wires and holding them while flashing (3-4 hands were included in that action). :vulcan_salute:

Because ā€œfreeingā€ esp based device hardly takes 60 seconds (usually much less) I virtually never solder wires or pins but just do it always ā€œfreelyā€. Even shorting wires or loosing grip while flashing never killed any of my devices. Worst case is to initiate the flashing process once again - bricking espā€™s is simply not possible afaik. :ok_hand:

@lmatter I was hoping the same thing. Did you ever find and interface to use to type in wi-fi creds? I canā€™t get mine to fully connect

I did - check out my comment a bit after that one. I used my Windows laptop to create a ā€œhotspotā€ that only had 2.4GHz so I was able to get them registered with eWeLink. SONOFF Micro - 5V Wireless USB Smart Adaptor - #12 by lmatter

I wanted to keep them on the same lan so HA could use local API so didnā€™t want to go this route. Based on another thread I tried a tablet I had and my micros connected right away. Two different android phones didnā€™t work, but an android tablet worked perfect. Such a waste of time trying to get these things to connect!!!

Any chance you could share your yaml for these?

I think I got this from somewhere else, so I canā€™t take credit for this

Edit:
Looks like it came from here, but maybe has gotten updated since I first used it

substitutions:
  devicename: weatherwifiswitch
  upper_devicename: "Weather Wifi USB Relay"

esphome:
  name: $devicename
  platform: ESP8266
  board: esp01_1m


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Weatherwifiswitch"
    password: "xxxxxxx"
    ap_timeout: 3min

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:



status_led:
  pin:
    number: GPIO16 # Blue LED

switch:
  # Relay
  - platform: gpio
    id: relay
    pin: GPIO5

  # Green LED
  - platform: gpio
    pin: GPIO14
    id: green_led
    inverted: true # start on

  # Switch template to link relay and green LED states
  # LED is on when relay is off
  - platform: template
    id: "${devicename}_relay"
    name: $upper_devicename
    lambda: |-
      if (id(relay).state) {
        return true;
      } else {
        return false;
      }
    turn_on_action:
        - switch.turn_on:
            id: green_led
        - switch.turn_on:
            id: relay
    turn_off_action:
        - switch.turn_off:
            id: green_led
        - switch.turn_off:
            id: relay

# Button
binary_sensor:
  - platform: gpio
    id: button
    pin:
      number: GPIO04
      mode: INPUT_PULLUP
      inverted: True
    on_press:
      - switch.toggle: "${devicename}_relay"
1 Like

Many thanks!

I wrote a short SINILINK guide a while ago.