devbis / z03mmc

Xiaomi LYWSD03MMC Zigbee Firmware
GNU General Public License v3.0
818 stars 38 forks source link

zigbee change offsets of humidity and temp? #154

Open RMHogervorst opened 2 weeks ago

RMHogervorst commented 2 weeks ago

I feel this is a dumb question, but can I modify the temperature and humidity sensor offsets through zigbee?

I flashed a device and realise the temp is off.

RMHogervorst commented 2 weeks ago

Preferably through home assistant

devbis commented 2 weeks ago

Yes you can. https://github.com/devbis/z03mmc?tab=readme-ov-file#configuring-the-device You can write corresponding values to the mentioned clusters/attributes for the result you need.

RMHogervorst commented 1 week ago

Okay I've tried several things but I don't know how to change the values through home assistant with ZHA.

Could you help me?

Here is what I tried:

Modify values through the device page

In there we have values for temperature measurement 0x0402. and a min, a max and some more attributes, but not attribute: 0x0010.

I can write values but that doesn't seem to have an effect.

use developer tools / call service / issue zigbee cluster command

I know the ieee of the device, I know the cluster id (1) but I am a bit lost on what to do next. Do you have an example yaml that I can use?

RMHogervorst commented 1 week ago

oh noo, do I need to translate the hex to integer?

This at least gives me a green check mark on execution.

service: zha.set_zigbee_cluster_attribute
data:
  cluster_type: in
  ieee: [mac address]
  cluster_id: 1026
  endpoint_id: 1
  attribute: 16
  value: -1000

But this does not seem to change the values I get back from the device