syssi / esphome-mi-desk-lamp

ESPHome custom firmware for the Xiaomi Mi Desk Lamp
Apache License 2.0
27 stars 1 forks source link

How to flash the custom firmware to the device #1

Open HydrelioxGitHub opened 2 years ago

HydrelioxGitHub commented 2 years ago

Hello, I have this bed lamp and I would like to try your firmware (I try to not have any more proprietary cloud IOT devices).

Could you give more information on how to flash it on the lamp or point at some useful ressources ?

Thank you by advance.

syssi commented 2 years ago

Please follow this how to for the disassembly & soldering: https://tasmota.github.io/docs/devices/Xiaomi-Mi-Desk-Lamp/

If the lamp is attached to the USB-to-TTL converter and booted into the download mode use the following commands to install esphome and flash the example.yaml:

# Install esphome
pip3 install esphome

# Clone this external component
git clone https://github.com/syssi/esphome-mi-desk-lamp.git
cd esphome-mi-desk-lamp

# Create a secrets.yaml containing some setup specific secrets
cat > secrets.yaml <<EOF
wifi_ssid: MY_WIFI_SSID
wifi_password: MY_WIFI_PASSWORD
EOF

# Flash the firmware to the device
esphome run mi_desk_lamp.yaml