pvvx / ZigbeeTLc

Custom firmware for Zigbee 3.0 IoT devices on the TLSR825x chip
Other
386 stars 21 forks source link

Wrong inital name for new TS0201 #117

Open web2brain opened 2 months ago

web2brain commented 2 months ago

I added two new TS0201 and their model name was not set to "TS0201-z" as I expected, but to "�z" (copy & paste from Home Assistant probably made it worse). If I check the two new sensors, their information contains: "manufacturer": "Tuya", "model": "\ufffd\u0003z\u0002", "name": "Tuya \ufffd\u0003z\u0002", The older ones have "manufacturer": "Tuya", "model": "TS0201-z", "name": "Tuya TS0201-z",

Not a big issue, as the names can be changed, but irritating.

Thank you a lot for this great zigbee firmware for these sensors!

pvvx commented 2 months ago

Flash was not cleared after Tuya flashing. The name is stored in Flash at address 0x075000. This sector contained characters matching the name format filter.

web2brain commented 2 months ago

What does this mean for using it as a Zigbee sensor? Can I just rename them? It happened for OTA flashing via ZHA and also directly flashing the Zigbee firmware to the controller via USB TTL.

pvvx commented 2 months ago

The device name can be set using the standard Zigbee function.

image

Maximum name length is 24 characters

web2brain commented 2 months ago

That was my understanding as well, thanks for confirming it.