I converted four more Neo Coolcam Wi-Fi plugs (Szneo, ESP8266, 1 MB flash) to Tasmota with tuya-convert running in Docker on my Debian desktop, no Raspberry Pi. When everything is right, one plug takes about one minute: ~25-30 s smartconfig, ~3.5 s for the 1 MiB backup, ~9 s for the flash itself.
One of the four had been sitting in a drawer for years labelled “broke during tuya-convert”: no LED, no relay, never joined Wi-Fi. It was not dead. It was still running tuya-convert’s intermediate firmware, which drives no LED, and was advertising an open AP called vtrust-recovery. Knowing the difference between vtrust-flash and vtrust-recovery is what brought it back.
The earlier story (2022 Raspberry Pi, April 2026 Docker) is in the original Neo post. The fork with the small automation hooks and a REQUIREMENTS.md write-up: stulluk/my-tuya-convert.
tuya-convert works in two stages, and each stage has its own Wi-Fi name. Mixing them up cost me years with that one plug.
vtrust-flash is the access point your PC creates (hostapd inside the container). The stock Tuya firmware is tricked via smartconfig into joining it, talks to a fake Tuya cloud on 10.42.42.1, and is told to “upgrade” to upgrade.bin, the intermediate firmware.vtrust-flash with the static IP 10.42.42.42, and serves a tiny web API: / (chip info), /backup (dump the 1 MiB flash), /flash?url=... (download and write a third-party image), /undo.vtrust-recovery is what that intermediate firmware does when it cannot find vtrust-flash within 20 seconds: it opens its own open AP with that name, still at 10.42.42.42, still serving the same API. From the source:#define WIFI_SSID "vtrust-flash"
#define WIFI_APSSID "vtrust-recovery"
IPAddress ip(10, 42, 42, 42);
...
while (WiFi.status() != WL_CONNECTED) {
x++; delay(200);
if (x > 100) { Serial.println("\nFailed to connect"); softAPsetup(); return; }
}
So if you ever see vtrust-recovery in your phone’s Wi-Fi list, a device near you is half-way through tuya-convert: stock firmware gone, Tasmota not yet written. It is recoverable.
Same machine as in April: ath12k_pci, interface wlp8s0, wired Ethernet for the uplink. config.txt has WLAN=wlp8s0. Build and run with plain Docker, no compose:
docker build -t tuya-convert:local .
docker run --rm -it --privileged --network host \
-e WLAN=wlp8s0 -e AP=vtrust-flash -e GATEWAY=10.42.42.1 \
-e AUTO_FLASH_INDEX=2 -e AUTO_FLASH_ANOTHER_DEVICE=n \
-v /path/to/tuya-convert/data/backups:/usr/bin/tuya-convert/backups \
tuya-convert:local
AUTO_FLASH_INDEX=2 picks tasmota.bin from the menu without a keypress, AUTO_FLASH_ANOTHER_DEVICE=n exits cleanly after one plug. Both are hooks from my fork; upstream waits for interactive input.
First run of the day died immediately:
Checking for network interface wlp8s0... Found.
Checking UDP port 53... Occupied by unknown process.
Port 53 is needed to resolve DNS queries
Aborting due to occupied port
A dnsmasq.service had been installed on the host months ago for an unrelated lab setup, with the stock Debian config, listening on 0.0.0.0:53. The container shares the host network but not the host PID namespace, so it sees the socket but cannot name or kill the process; it just aborts. My host resolver points at Pi-hole, not at localhost, so the fix was simply:
sudo systemctl disable --now dnsmasq
The container’s cleanup calls systemctl stop NetworkManager, which does nothing in Alpine. It works anyway, but after every run the Wi-Fi interface keeps 10.42.42.1/24. Before using Wi-Fi again:
sudo ip addr del 10.42.42.1/24 dev wlp8s0
This is where every failed attempt came from, in 2022 and today.
vtrust-flash and stays there. Android will try to bounce you to mobile data because the AP has no internet; tell it to stay.vtrust-flash; that is progress, not failure.Rule 3 is not theoretical. On the second plug I “helped” with another long press while it was already connected. The fake-cloud log shows exactly what happened: the device got the upgrade command, then eleven seconds later reported a factory reset and vanished, never fetching upgrade.bin:
1792807025: Sending PUBLISH to 06200632dc4f2238b856 ('smart/device/in/06200632dc4f2238b856')
POST /gw.json?a=atop.online.debug.log&gwId=06200632dc4f2238b856 ...
POST /gw.json?a=s.gw.reset&gwId=06200632dc4f2238b856&t=1792807036 ...
wlp8s0: AP-STA-DISCONNECTED dc:4f:22:38:b8:56
Hands off, retry, done in a minute.
Timings from today’s four plugs, read from the container output:
| Step | Measured |
|---|---|
| ENTER to “IoT-device is online with ip 10.42.42.42” | 25-30 s |
curl http://10.42.42.42/backup (1 MiB) | ~3.5 s, ~290 KB/s |
Flashed http://10.42.42.1/files/tasmota.bin successfully in ... | 8718, 8742, 8895, 9137 ms |
Tasmota reboot, AP tasmota_XXXXXX-NNNN visible | ~20 s |
| Wi-Fi credentials sent, plug on my LAN with its static lease | 6-9 s |
Typical flash line:
Attempting to flash tasmota.bin, this may take a few seconds...
Flashed http://10.42.42.1/files/tasmota.bin successfully in 9137ms, rebooting...
The whole thing, from plugging in to curl http://tasmota-10.lan/cm?cmnd=Power%20ON working, is under two minutes per plug when nobody touches the button.
After the flash, Tasmota starts its open AP (tasmota_38BBB8-7096 style) and waits at 192.168.4.1. Instead of typing SSID and password on the phone four times, I connected the PC’s Wi-Fi to that AP with nmcli and sent one Backlog:
curl -G --interface wlp8s0 http://192.168.4.1/cm \
--data-urlencode "cmnd=Backlog Module 49; DeviceName tasmota-10; FriendlyName1 tasmota-10; Hostname tasmota-10; SSID1 <ssid>; Password1 <password>"
Module 49 is Neo Coolcam. Tasmota waits until the whole Backlog has run before it restarts, so one request configures the module, the names and the Wi-Fi together. The plug was on my LAN six seconds later, picked up its static lease from Pi-hole (dhcp-host=<MAC>,192.168.1.160,tasmota-10), and Status 0 confirmed everything. The script that does this (and keeps the password out of the terminal) is scripts/onboard_tasmota_plug.sh in the fork.
Verification I run on every plug:
Module : 49 tasmota-10 ['tasmota-10']
Version : 9.2.0(lite)
Hostname/IP : tasmota-10 192.168.1.160 DC:4F:22:38:BB:B8
Wifi : STEW-24 RSSI 96
{"Module":{"49":"Neo Coolcam"}}
Yes, still Tasmota 9.2.0: it is the image bundled with tuya-convert, it is what my other seven plugs run, and these plugs do exactly one thing. I looked into a self-hosted OTA server and newer Tasmota and decided it solves a problem I do not have.
Now the interesting one. Plugged in: no LED, button does nothing, nothing joins my Wi-Fi. Opening these plugs is destructive (I broke two in 2022), so software was the only option.
With the container running, I watched hostapd’s log instead of pressing anything. The moment the AP came up, an unknown Espressif MAC associated:
wlp8s0: AP-ENABLED
wlp8s0: AP-STA-CONNECTED dc:4f:22:38:bc:45
No DHCP lease, nothing at 10.42.42.42, and it dropped again. Meanwhile my phone’s Wi-Fi list showed vtrust-recovery. That was the whole diagnosis: the plug boots, tries vtrust-flash for 20 seconds, gives up, opens its recovery AP. It had been doing that at every power-up for years, invisibly, because the intermediate firmware never touches the LED.
I stopped the container (to free the Wi-Fi card) and connected the PC to vtrust-recovery. Its AP is lazy about DHCP, so a manual 10.42.42.x/24 address is the reliable way in. The device answered right away:
VTRUST-FLASH 1.5
(c) VTRUST GMBH https://www.vtrust.de/35c3/
READ FLASH: http://10.42.42.42/backup
ChipID: 38bc45
MAC: DC:4F:22:38:BC:45
FlashMode: 1M QIO @ 40MHz
FlashChipRealSize: 1024K
Active Userspace: user2 0x81000
But every long transfer collapsed after a few kilobytes, four backup attempts and one flash attempt (Tasmota served from the PC with python3 -m http.server):
curl: (18) end of response with 1044196 bytes missing
curl: (18) end of response with 1035436 bytes missing
...
10.42.42.42 - - "GET /tasmota.bin HTTP/1.1" 200 -
BrokenPipeError: [Errno 32] Broken pipe
My guess: the plug’s little power supply cannot feed the ESP8266 while it runs as an access point and streams data. That would also explain how the original conversion died half-way years ago.
Station mode is lighter on the ESP than AP mode, so the last try was the simplest one: start the container again (so vtrust-flash exists), power-cycle the plug without touching the button, and wait for 10.42.42.42. It showed up 52 seconds after power-on. I skipped the backup and went straight for the flash, using the container’s own file server:
curl "http://10.42.42.42/flash?url=http://10.42.42.1/files/tasmota.bin"
Flashed http://10.42.42.1/files/tasmota.bin successfully in 8895ms, rebooting...
Twenty seconds later the phone showed tasmota_38BC45-7237. Same onboarding as the others, and it is now tasmota-13 at 192.168.1.163. The LED works, the relay clicks, tasmota13-on / tasmota13-off do what they say. Nothing was wrong with the hardware that a finished flash could not fix; the only thing lost is the stock firmware backup of this one plug.
vtrust-recovery in your Wi-Fi list means a half-converted device, not a dead one. Bring vtrust-flash back (just run tuya-convert), power-cycle the device, and finish with /flash?url=.vtrust-flash; if the smartconfig phase runs past two minutes, something is wrong with the phone or the blink mode, not with waiting longer.scripts/smarthack-*.log inside the running container before retrying. They tell you precisely where the device got to.