This repository contains an esphome configuration file for flashing esphome to Tuya SK20 nebula lights. Thanks to the amazing work of a lot of other people no disassembly or soldering is required. You can simply jailbreak the device using your laptop and flash ESPhome (or any other LibreTiny / WB3S-compatible firmware).
The following repositories, projects and tools helped a lot in jailbreaking my nebula light:
This guide assumes you have a Linux computer and some basic terminal knowledge.
The used tools also have some prerequisites like python
, docker
and plattform.io
Make sure you have the esphome CLI installed
Configure your secrets by creating the following secrets.yaml
file:
wifi_ssid: "<your SSID>"
wifi_password: "<your wifi password>"
wifi_fallback_password: "<some random password>"
ota_password: "<some random password>"
api_password: "<your home assistant api password>"
Then, build and flash the image using the following commands:
$ wget https://raw.githubusercontent.com/M4GNV5/esphome-SK20-Nebula-Light/master/recommended_base.yaml
$ esphome compile recommended_base.yaml
$ git clone https://github.com/tuya-cloudcutter/tuya-cloudcutter
$ cp ./.esphome/build/nebula/.pioenvs/nebula/image_bk7231t_app.ota.ug.bin tuya-cloudcutter/custom-firmware/star_nebula_bk7231t.ota.ug.bin
$ sudo ./tuya-cloudcutter.sh
The last program will guide you through the jailbreaking procedure, asking you for the following information. You will also have to long press the device button for a few seconds twice until it is slow blinking (WiFi AP mode):
star_nebula_bk7231t.ota.ug.bin
The nebula light should now connect to your Wifi and/or host its own fallback AP.