Skip to content
/ BZdevice Public

Custom firmware for devices on the TLSR825x chip operating simultaneously in Zigbee 3 and Bluetooth LE

License

Notifications You must be signed in to change notification settings

pvvx/BZdevice

Repository files navigation

BZdevice

Experimental firmware for devices on the TLSR825x chip operating simultaneously in Zigbee 3 and Bluetooth LE.

It is not recommended to use experimental versions for those who do not have the ability to reprogram the device using wired connections!

Currently supported devices: LYWSD03MMC, CGDK2, MHO-C122, MHO-C401N, TS0201_TZ3000, TH03Z

In developing: MHO-C401(old), MJWSD05MMC, CGG1-M, TS0202_TZ3000

Firmware supports:

  • Zigbee OTA
  • BLE OTA
  • BLE advertising BTHome v2
  • Screen display configuration
  • Setting offsets sensors

Average consumption for Xiaomi LYWSD03MMC B1.4 - 18 µA

  • Warning: Not use BLE OTA TelinkMiFlasher for this version! In the current experimental version, BLE OTA is not yet stable. You may have to use TelinkOTA.html several times.

Dual Zigbee + BLE device

image

image

Action of the button

Action of the button (or contact "reset" to "gnd" for LYWSD03MMC):

  • Short press - send temperature, humidity and battery data.
  • Hold for 2 seconds - Switches temperature between Celsius and Fahrenheit. The change will immediately appear on the screen.
  • Hold for 7 seconds - reset the binding and restart. The screen will briefly display “---” (for devices using a screen with fast refresh capabilities, not E-Ink). After restarting, the thermometer will wait forever for registration. Jerking the battery won't change anything.

Display decimal places for temperature, humidity and battery charge in ZHA

ZHA patch for more precision display of data for all Zigbee devices.

Indication on LCD screen

A solid "BT" icon indicates a connection loss or the thermometer is not registered with the Zigbee network.

The flashing "BT" icon is called by the "identify" command.

ZHA: Switch temperature between Celsius and Fahrenheit, Show smiley, Comfort parameters

Setting offsets for temperature and humidity.

ZHA: Setting offsets for temperature and humidity

Z2M

Use External convertors

Reports configurations in ZHA:

RelativeHumidity: min/max/change - 30/180/50

TemperatureMeasurement: min/max/change - 30/180/10

image

If the measured values by the sensor change rapidly:

image

For BLE, the transmission step of all measured values is always 10 seconds. The transmission is duplicated 2 times in 5 second increments.

Zigbee transmission: image

BLE transmission: image

BLE OTA

For those not afraid to experiment:

  • The firmware is carried out from the BLE version by downloading a *.zigbee or *.bin file in TelinkMiFlasher.html. In the file name input field, paste https://github.com/pvvx/BZdevice/raw/master/bin/1141-020a-02053001-Z03MMC.zigbee (for LYWSD03MMC)
  • For BLE OTA, when this version is already working, TelinkOTA.html is used.

Zigbee OTA

OTA update in ZHA

Before flashing the firmware, check the compliance of the “Manufacturer Code” and “Image Type” between the OTA file and those issued by the Zigbee device.

Sample: "1141-020a-01103001-Z03MMC.zigbee"

Manufacturer Code Image Type File Version Stack Version Name Ext OTA
1141 020a 0110 3001 Z03MMC zigbee
0x1141 - Telink 0x02 - TLSR825x, 0x0a - Xiaomi LYWSD03MMC App release 0.1, App build 1.0 Zigbee v3.0, Release 0.1 Z03MMC OTA
Image Type Device, note
0x0201 MHO-C401 (old version)
0x0202 CGG1 (old version)
0x0203 LYWSD03MMC ver https://github.com/devbis/z03mmc
0x0204 WATERMETER ver https://github.com/slacky1965/watermeter_zed
0x0206 CGDK2
0x0207 CGG1 (new version)
0x0208 MHO-C401 (new version)
0x0209 MJWSD05MMC
0x020A LYWSD03MMC
0x020B MHO-C122
0x0210 TB-03F-Kit (DIY)
0x0211 TS0201-TZ3000
0x0212 Water Tank sensors (not published)
0x0216 TH03Z

About

Custom firmware for devices on the TLSR825x chip operating simultaneously in Zigbee 3 and Bluetooth LE

Resources

License

Stars

Watchers

Forks

Packages

No packages published