Skip to content

Which release file to download

Every release has eleven files, and the file name tells you which one you need. It has three parts: the board, whether the image is an app image or a factory image, and, on the two boards with a second image, which feature set it has.

Get them from the Releases page. Untagged builds of the same eleven files are on the Actions tab under the latest build run.

File Board Use it for
smalltv-mod-firmware.bin SmallTV, SmallTV-ultra and SDPro (ESP8266) The normal install and every later update
smalltv-mod-firmware-lean.bin Same ESP8266 boards The same device when it needs more heap. Home Assistant screens, the usage meter and theme clocks are compiled out
smalltv-mod-loader.bin SmallTV-ultra and SDPro (ESP8266) One-time first install when the stock updater rejects the full image
smalltv-mod-firmware-c2.bin SmallTV (ESP32-C2 / ESP8684) Updates, once this firmware is already running
smalltv-mod-firmware-c2.factory.bin SmallTV (ESP32-C2 / ESP8684) The first install, over USB-C
smalltv-mod-firmware-esp32.bin NM-TV-154 (classic ESP32) Updates, once this firmware is already running
smalltv-mod-firmware-esp32.factory.bin NM-TV-154 (classic ESP32) The first install, over USB
smalltv-mod-firmware-esp32-wg.bin NM-TV-154 (classic ESP32) The same board when you want the WireGuard tunnel. Updates, once this firmware is already running
smalltv-mod-firmware-esp32-wg.factory.bin NM-TV-154 (classic ESP32) The same image, for a first install over USB
smalltv-mod-firmware-esp32-pro.bin SmallTV Pro (classic ESP32, 8 MB) The first install over the stock web UI, and every later update
smalltv-mod-firmware-esp32-pro.factory.bin SmallTV Pro (classic ESP32, 8 MB) A direct install or a recovery over the internal UART header

Not sure which board you have? Hardware and variants has photos and the tell-tale signs for each.

Every name follows the same pattern:

smalltv-mod-<image>[-<target>][.factory].bin

The <image> part is firmware for the full firmware and loader for the minimal ESP8266 installer.

The <target> suffix names the board. No suffix means the original ESP8266:

Suffix Board
none SmallTV, SmallTV-ultra and SDPro (ESP8266), all features
-lean The same ESP8266 boards, without Home Assistant screens, the usage meter or theme clocks
-c2 SmallTV with the ESP32-C2 / ESP8684 chip
-esp32 NM-TV-154, classic ESP32, 4 MB flash
-esp32-wg The same NM-TV-154, with the WireGuard client compiled in
-esp32-pro SmallTV Pro, classic ESP32, 8 MB flash

.factory marks a merged image. It contains the bootloader, the partition table and the app, and is written to flash offset 0x0 over a cable. A name without .factory is an app image: only the application, sized for an OTA slot. The ESP32 boards need the factory image for their first install and the app image for later updates. The ESP8266 needs no factory variant, because its single image already has everything.

The System tab shows the running variant next to the version, for example smalltv-mod 3.14.0 (esp8266-lean). /api/status has the same string as variant.

That name also decides what a self-update downloads. Each build is compiled with its own UPDATE_ASSET and FW_VARIANT (src/config.h), and the updater accepts only the release asset whose name matches. A lean device fetches smalltv-mod-firmware-lean.bin and stays lean, and an esp32-wg device fetches smalltv-mod-firmware-esp32-wg.bin and keeps its tunnel. A self-update never moves a device between variants, so it never adds or removes features without you choosing it.

Two boards have two variants: the ESP8266 (esp8266 and esp8266-lean) and the NM-TV-154 (esp32 and esp32-wg). Every other board has one image and one variant.

Switch a device from one variant to the other

Section titled “Switch a device from one variant to the other”

Switching variants is a manual upload, never a self-update. Download the other .bin for the same board and upload it in the System tab. This works over the air on both boards with a pair, without a cable, because the two images in a pair share a partition table and the switch is an ordinary OTA into the same slot.

Settings are kept. Both images in a pair read the same config.json from the same LittleFS partition, and neither changes the layout. A WireGuard configuration survives a round trip: the settings store keeps the wg block whether or not the running image has the client, so a device moved from esp32-wg to esp32 and back finds the tunnel set up as it was. From 3.5.0 the same holds for saves made on the lean image. A save there leaves the carousel slots of the features lean lacks, and a stored mode it cannot show, as they were, so they are still set when the device goes back to the standard image.

One thing is lost, on the ESP8266 pair only. The lean image has no Home Assistant module, so screens already pushed to the device are dropped and their MQTT topics are no longer subscribed. Your retained messages on the broker stay, so going back to the standard image and letting it resubscribe brings the screens back.

After the switch the System tab reports the new variant, and self-update follows the new one.

Why the ESP8266 and the NM-TV-154 get two images and the other boards get one

Section titled “Why the ESP8266 and the NM-TV-154 get two images and the other boards get one”

The ESP8266 shares a single 80 KB DRAM arena between static allocations and the heap, so every compiled-in feature costs heap that TLS then cannot use. The HTTPS fetches refuse to start a handshake when memory runs short: the plane radar and a cash.ch quote each need a 16,000-byte contiguous block, and from v3.13.0 a Yahoo quote needs free heap for its receive buffer plus 15,700 bytes for the handshake and 5,120 bytes kept for the WiFi SDK, and a 6,400-byte block. Below that the affected screen goes quiet, and since 2.12.1 the Status tab’s Radar line says so.

The lean image gives that memory back. After 3.12.0, with the radar, MQTT and usage buffers on the heap, static RAM is 48,288 bytes for the standard image and 41,048 for lean, so the heap starts 7,240 bytes larger. Lean compiles out Home Assistant, the usage meter and theme clocks.

Since 3.5.0 the standard image also leaves out the largest part of Home Assistant when it is not used: the four-screen store (5,792 bytes) and the MQTT client with its 768-byte receive buffer come from the heap at boot, and only when a broker host is set. On a standard ESP8266 running the Pixel Room theme, free heap is about 14.4 KB with the broker host blank and about 7.3 KB with Home Assistant on. So a device that does not use Home Assistant needs the lean image only when it also does not use theme clocks and still runs short.

The ESP32 boards have several times the RAM and manage TLS buffers dynamically through mbedTLS, so RAM never forces a second image on them.

Flash forces one on the NM-TV-154. Its 4 MB layout gives each OTA slot 1,572,864 bytes, the same as the ESP32-C2’s. On v3.10.0, before the rain radar, the same code built about 36 KB larger on the classic ESP32, and the images measured 1,483,136 bytes without the WireGuard client and 1,529,104 bytes with it: the tunnel cost 45,968 bytes, about half of the plain image’s spare room. With the rain radar added in v3.12.0, an image with both would leave about 4 KB, under the 8 KB CI requires, and the slot cannot grow without a partition-table change that no over-the-air update can install. So the client ships as the separate -esp32-wg image, which leaves the rain radar out, and the plain image has rain and no client. On v3.14.0 they measure 1,541,888 and 1,549,680 bytes. The ESP32-C2 and the SmallTV Pro have room for the client, so they include it in their only image.

See Building from source to build either ESP8266 image yourself or a slimmer combination of your own, and the smalltv_esp32_wg env for the NM-TV-154 pair.