You get the ready-made stick from me with the pre-installed ESPHome firmware compiled with the following YAML config:
packages:
dongle: github://dudanov/esphome-packages/hardware/iot-uni-dongle/minimal.yaml
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.
substitutions:
name: my-esphome-device
friendly_name: My ESPHome Device
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Must be used once. It is necessary to comment out after the first firmware update.
use_address: iot-uni-dongle.local
packages:
default: github://dudanov/esphome-packages/hardware/iot-uni-dongle/device.yaml
# following is your config...
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.
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.
The general connection diagram is as follows:
TODO: insert connection image
Next, read the official ESPHome documentation, another preferred firmware, or use esptool directly.