Warning
This guide is outdated. Support for LibreTiny has been merged to ESPHome in version 2023.9.0. See ESPHome documentation for up-to-date instructions.
Also see tuya-cloudcutter and UnTuyaOS3 for alternative ways of flashing custom firmware to certain devices.