Skip to content
steanlabPublic

About

Zigbee firmware for the Hanshow Nebular 154 e-paper tag — works with Home Assistant, zigbee2mqtt and ZHA out of the box (battery, identify, OTA via standard Zigbee clusters), push text to the panel over a small custom cluster. Zigbee sibling of badge154 (BLE)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

89 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZBee154

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.

What it does

  • Standard Zigbee 3.0 End Device: Power Configuration (battery voltage & percentage), Identify (green LED blink), Poll Control (sendWhen: 'active' queue support), OTA Upgrade (.zigbee, dedicated IMAGE_TYPE = 0x8154), and outgoing On/Off Toggle (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/red accents, and FNV-1a content-hash deduplication (skips redundant refreshes and Flash writes when content hasn't changed).
  • Proportional UTF-8 DejaVu Sans fonts (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 mV brownout protection before EPD refreshes, and reports panel_status (ok, refreshing, low_battery_skip, busy_timeout, qr_error), panel_timeouts, panel_temp, and refresh_seq.
  • UART/SWire-friendly recovery: keeps PA7 (LED_BLUE / SWS) in AS_SWIRE mode during the 500 ms cold-boot window and idle/sleep so wired re-flashing stays accessible.

Quick start

  1. Back up the stock flash first, then flash the latest ZBee154-v*.bin from Releases (or firmware/prebuilt/) over a USB-UART adapter — see firmware/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 on TX -> SWS), because PA7 also drives the active-low blue LED.
    • Upgrading from <= v0.2.9: IMAGE_TYPE changed from 0x0240 to 0x8154, so updating from <= v0.2.9 requires a one-time wired .bin flash; all future updates work over Zigbee OTA (.zigbee).
    • If a web-flasher cannot overwrite an earlier build, see docs/RECOVERY.md.
  2. Power on the tag and pair it with your Zigbee coordinator (tapping NFC wakes the tag and reports toggle).
  3. Install z2m/zbee154.mjs (see z2m/README.md) or zha/quirk_zbee154.py (see zha/README.md).
  4. 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 periodic CheckIn or 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.

zigbee2mqtt examples (zigbee2mqtt/<friendly_name>/set)

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"}

Not yet done

  • 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.py is updated for 0xFC00 attributes 0x0000–0x000C, but live verification on ZHA is still pending.

Repository

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

Credits and licence

MIT licence, see LICENSE. Firmware builds on pvvx/ZigbeeTLc; hardware details come from badge154. Third-party licences and provenance: NOTICE.md.

About

Zigbee firmware for the Hanshow Nebular 154 e-paper tag — works with Home Assistant, zigbee2mqtt and ZHA out of the box (battery, identify, OTA via standard Zigbee clusters), push text to the panel over a small custom cluster. Zigbee sibling of badge154 (BLE)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages