Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.49 KB

FLASHING.md

File metadata and controls

68 lines (46 loc) · 2.49 KB

Flashing device

Using OTA with ESPHome firmware (only for sticks ordered from me)

You get the ready-made stick from me with the pre-installed ESPHome firmware compiled with the following YAML config:

esphome:
  name: iot-uni-dongle
  platform: ESP8266
  board: esp12e

wifi:
  ap:
    ssid: "iot-uni-dongle"
    password: "12345678"

captive_portal:

ota:

This means that when the stick is powered on, it will works in the access point mode with the network name iot-uni-dongle and a simple password 12345678.

By connecting to this network from your smartphone, you can go to the captive portal and enter the parameters of your home Wi-Fi network. I needed to reboot the stick in order for it to connect to my network.

To properly update your firmware based on your configuration using OTA for the first time, you will need to add the current iot-uni-dongle.local address to the wifi component's configuration using the optional use_address string as in the following example. Subsequent firmware updates via OTA must be performed without this option. Read more here.

esphome:
  name: my-node-name
  platform: ESP8266
  board: esp12e

wifi:
  ssid: "mySSID"
  password: "myPASSWORD"
  # comment next line after first successful update
  use_address: iot-uni-dongle.local
  ap:
    ssid: "fallbackSSID"
    password: "fallbackPASSWORD"

captive_portal:

ota:

Thus, you do not need to resort to using the programmer. Congratulations! The migration is complete and you are completely independent of my initial configuration! Here you can view example YAML config for Midea-like ACs.

Using the programmer (universal method)

This is a little more complicated and you will need to assemble the programmer if you do not have one.

The stick is flashed using the UART. Thus, we need any USB-UART converter, and a way to connect it to the stick. For example, I flash sticks with such a simple homemade programmer based on FTDI converter.

1 2 3 4

The general connection diagram is as follows:

TODO: insert connection image

Next, read the official ESPHome documentation, another preferred firmware, or use esptool directly.