Information about all supported devices is kept inside device_db.yaml.
⤷ the only file you need to edit for adding a new device (usually)
| Field | Description |
|---|---|
KEY (e.g. TS0004_AVATTO) |
Given device name: • Used in project as BOARD • Name of the device directory in bin/ |
human_name |
Full name of the device: • Shown in supported_devices.md |
power |
Power source: • mains, USB, AAA, CR2032 etc. • Shown in supported_devices.md |
neutral |
Does the device have Neutral? • without / optional / required • Currently unused |
device_type |
Default operation mode for custom FW: • end_device ➡ Line-only devices • router ➡ Line+Neutral devices (Scripts build both variants for L-only devices) |
mcu |
Microcontroller unit type: • TLSR8258 ➡ Telink TLSR8258 MCU • EFR32MG21 ➡ Silicon Labs EFR32MG21 MCU • Determines which toolchain and SDK to use for building firmware |
stock_model_name |
Zigbee Model in Z2M on stock FW: • Identifies the device • Value hardcoded on the stock FW, can't be changed • Currently unused |
stock_manufacturer_name |
Zigbee Manufacturer in Z2M on stock FW: • Identifies the exact device • Value hardcoded on the stock FW, can't be changed • Used in OTA indexes to select the correct FW when updating • Format: _TZ3000_xxxxxxxx |
stock_converter_manufacturer |
Manufacturer in Z2M on stock FW • Not Zigbee Manufacturer! • Manufacturer name given by Z2M converter • May be overwritten by whiteLabel (Check official Z2M converters) • Needed to enable OTA for stock FW |
stock_converter_model |
Model in Z2M on stock FW: • Not Zigbee Model! • Model name given by Z2M converter • May be overwritten by whiteLabel (Check official Z2M converters) • Needed to enable OTA for stock FW • Used as base for the custom converter? |
override_z2m_device |
Overwrites the model name: (get it from whiteLabel in official Z2M converters): • Keeps generic converter • Adds custom name & picture • eg. TS0004_AVATTO shows up as ZWSM16-4-Zigbee, instead of generic TS0004_switch_module_2 |
tuya_module |
Tuya module inside the device: • Currently unused |
mcu_family |
Microcontroller manufacturer: • Telink / Silabs • Currently unused |
config_str |
Given manufacturer;model;pinout on custom FW: • manufacturer ➡ ID & OTA updates • model ➡ selects converter • pinout ➡ GPIO mapping |
alt_config_str |
Alternative config string: • Currently unused |
old_manufacturer_names |
Previously used manufacturer names in custom FW |
old_zb_models |
Previously used model names in custom FW |
stock_manufacturer_id |
Another stock FW identifier (usually 4417): • Needed for stock OTA update • Found in Z2M debug logs when attempting OTA |
stock_image_type |
Stock FW identifier (usually 54179): • Needed for stock OTA update • Found in Z2M debug logs when attempting OTA |
firmware_image_type |
Given custom FW identifier: • Currently unique per device • Increment for every new device |
build |
Whether to build for this device or not • yes / no |
status |
Device support status: 🟩 fully_supported, 🟨 mostly_supported, 🟧 in_progress, 🟥 unsupported • Shown in supported_devices.md |
info |
Status explained briefly |
threads |
Link to device-related GitHub issue or pull request |
store |
Links to buy the exact same device: • Preferably AliExpress (international, English, no affiliation) |