pvvx / ZigbeeTLc

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

Offset humidity/temp #18

Closed thkrmr closed 7 months ago

thkrmr commented 7 months ago

Is it possible to control the offset for humidity and temperature with the Zigbee firmware? With the BLE firmware I can do it directly in Telink Flasher, but obviously you can't use the Flasher anymore once the Zigbee variant is flashed.

I wanted to control the offset on device level, not HA, so that the display on the device itself would be correct as well. I use ZHA. I have 'calibrated' values for a bunch of LYWSD03MMC, because they drift when it comes to humidity.

pvvx commented 7 months ago

Introduce (represent) standard cluster numbers and attributes to Zigbee to change parameters.

pvvx commented 7 months ago

Added to README.md: Home Assistant with ZHA does not have functions for additional configuration of Zigbee devices. Until this changes, there can be no additions to the firmware.


The ZHA toolkit cannot read or change the values of arbitrary clusters. Write to ZHA and Home Assistant about adding standard Zigbee 3 features.

thkrmr commented 7 months ago

@pvvx Does the zha toolkit help writing to arbitrary/any cluster?

It has the attr_write service command https://github.com/mdeweerd/zha-toolkit#attr_write-writeread-an-attribute-value

I'm wondering what the clusters would be to introduce the offset.

pvvx commented 7 months ago

To get started, try:

9. Switch temperature between Celsius and Fahrenheit (ClusterID: 0x0204, Attr: 0x0000, ENUM8 = 1 in C, = 2 in F)

https://github.com/pvvx/ZigbeeTLc#current-additions


Duplicate topic: https://github.com/devbis/z03mmc/issues/78

On my test Zigbee 3 coordinator, everything is ok with my program. Errors in the ZHA.

ZigBee Cluster Library Specification Revision 6 Draft Version 1.0

image

pvvx commented 7 months ago

It will be possible to bypass the ZHA prejudices in the BLE-Zigbee version if a stable version can be created. At the same time, several tests are required on different systems.

pvvx commented 7 months ago

Added for ZHA (fw ver 0.1.1.5)

pvvx commented 7 months ago

ZHA: Setting offsets for temperature and humidity Available starting from firmware version 0.1.1.6.