Zigbee 3.0 End Device firmware for the Hanshow Nebular 154 e-paper tag (1.54", 200×200, black/white/yellow/red, Telink TLSR8359) — a Zigbee port of badge154.
Verified on live hardware with Zigbee2MQTT 2.x and Home Assistant (5 layouts, proportional UTF-8 text, on-device QR, OTA upgrades, NFC tap toggle, LED alerts, battery & panel temperature reporting). ZHA quirk live testing is pending.
Use at your own risk, no warranty. Unofficial: not affiliated with Hanshow, Telink, the Zigbee Alliance / Connectivity Standards Alliance, Home Assistant or Koenkk/zigbee2mqtt.
- Standard Zigbee 3.0 End Device: Power Configuration (battery voltage & percentage), Identify (green LED blink), Poll Control (
sendWhen: 'active'queue support), OTA Upgrade (.zigbee, dedicatedIMAGE_TYPE = 0x8154), and outgoingOn/OffToggle(0x0006) on NFC tap (with crisp 120 ms double blue flash). - 200×200 four-colour BWRY e-paper (
0xFC00) with 5 built-in layouts (classic,sensor,alert,qr,chart), dark mode (invert),normal/yellow/redaccents, and FNV-1a content-hash deduplication (skips redundant refreshes and Flash writes when content hasn't changed). - Proportional UTF-8
DejaVu Sansfonts (13/14/34 px) with automatic word-wrap (up to 36 chars/line): English, Russian, Ukrainian (Ґ Є І Ї), Belarusian (Ў), Polish (Ą Ć Ę Ł Ń Ó Ś Ź Ż), Lithuanian (Č Ė Į Š Ų Ū Ž), German/French basics (Ä Ö Ü ß É È À Ç), plus UI symbols (° № ± × € £ ₴ ₽ ↑ ↓ ← → ✓ ✕ • « » – — …). - 24 built-in pixel-art icons (
thermometer,humidity,door_open,door_closed,window_open,lock,unlock,sun,cloud,rain,snow,trash,washer,water_drop,flame,wifi,battery_low,alert,check,cross,bell,lightbulb,plug,home) and on-device QR code generator (Versions 1–5 EC-L, up to 106 bytes — no bitmap transfers needed). - NV flash persistence & power safety: saves display state (up to 108 bytes/line) after a successful refresh across battery swaps, enforces
< 2550 mVbrownout protection before EPD refreshes, and reportspanel_status(ok,refreshing,low_battery_skip,busy_timeout,qr_error),panel_timeouts,panel_temp, andrefresh_seq. - UART/SWire-friendly recovery: keeps
PA7(LED_BLUE/SWS) inAS_SWIREmode during the 500 ms cold-boot window and idle/sleep so wired re-flashing stays accessible.
- Back up the stock flash first, then flash the latest
ZBee154-v*.binfrom Releases (orfirmware/prebuilt/) over a USB-UART adapter — seefirmware/README.md.- Never run full chip erase (
Erase All) — factory panel calibration and MAC data are stored in upper flash sectors. - Disconnect
SWS(PA7) after flashing (or insert a 470–1000 Ω resistor onTX -> SWS), becausePA7also drives the active-low blue LED. - Upgrading from
<= v0.2.9:IMAGE_TYPEchanged from0x0240to0x8154, so updating from<= v0.2.9requires a one-time wired.binflash; all future updates work over Zigbee OTA (.zigbee). - If a web-flasher cannot overwrite an earlier build, see
docs/RECOVERY.md.
- Never run full chip erase (
- Power on the tag and pair it with your Zigbee coordinator (tapping NFC wakes the tag and reports
toggle). - Install
z2m/zbee154.mjs(seez2m/README.md) orzha/quirk_zbee154.py(seezha/README.md). - Import ready-to-use Home Assistant Blueprints from
ha/(zbee154_sensor.yaml,zbee154_alert.yaml,zbee154_nfc_actions.yaml).
Note on sleep & Home Assistant usage: Because the tag sleeps deeply, updates wait in queue (
sendWhen: 'active') until the next periodicCheckInor an immediate NFC tap. For best visual results, publish one complete JSON payload from Home Assistant rather than changing individual fields one-by-one in the Z2M UI.
Classic 4-line text (UTF-8):
{"layout": "classic", "line1": "№ 14 Прихожая", "line2": "Śmieci: jutro", "line3": "Šiluma: 22.5°C", "line4": "Двері зачинені", "accent": "red"}Sensor widget:
{"layout": "sensor", "icon": "thermometer", "line1": "23,4°C", "line2": "Salon", "line3": "Wilgotność: 48%", "line4": "Zaktualizowano teraz", "accent": "normal", "invert": false}Alert banner:
{"layout": "alert", "icon": "door_open", "line1": "Внимание", "line2": "Входная дверь", "line3": "Открыта 10 мин", "line4": "", "accent": "red"}On-device QR code (Wi-Fi / Home Assistant URL):
{"layout": "qr", "line1": "WIFI:T:WPA;S:GuestNet;P:Secret123;;", "line2": "Guest Wi-Fi", "accent": "normal"}Sparkline chart (numeric arrays auto-scale cleanly):
{"layout": "chart", "line1": "Температура", "line2": "24.1°C", "line3": "24h history", "line4": [21.2, 22.0, 23.5, 22.8, 24.1, 23.7], "accent": "yellow"}- SoC temperature measurement cluster: this SDK has no calibrated SoC temperature reading routine, so the standard Temperature Measurement cluster is omitted (panel controller temperature is exposed diagnostically as
panel_temp/panel_temp_raw). - Live ZHA verification:
zha/quirk_zbee154.pyis updated for0xFC00attributes0x0000–0x000C, but live verification on ZHA is still pending.
| Path | What |
|---|---|
docs/HARDWARE.md |
pinout, chip facts, power & hardware notes |
docs/PROTOCOL.md |
custom cluster 0xFC00: attributes, layouts, icons, UTF-8 charset |
docs/RECOVERY.md |
Raspberry Pi Pico (RP2040) unbrick & Flash unlock guide |
firmware/ |
prebuilt .bin / .zigbee binaries and flashing instructions |
ha/ |
Home Assistant Blueprints (sensor, alert, nfc_actions) |
z2m/ |
zigbee2mqtt external converter (zbee154.mjs) |
zha/ |
Home Assistant ZHA custom quirk (quirk_zbee154.py) |
ota_index.json |
Zigbee2MQTT local OTA index pointing to the latest release |
NOTICE.md |
third-party licences and provenance |
MIT licence, see LICENSE. Firmware builds on pvvx/ZigbeeTLc; hardware details come from badge154. Third-party licences and provenance: NOTICE.md.