devbis / z03mmc

Xiaomi LYWSD03MMC Zigbee Firmware
GNU General Public License v3.0
963 stars 46 forks source link

zigbee change offsets of humidity and temp? #154

Open RMHogervorst opened 5 months ago

RMHogervorst commented 5 months 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 5 months ago

Preferably through home assistant

devbis commented 5 months 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 5 months 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 5 months 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

nsteenbeek commented 2 months ago

Same here. Tried to turn off the smiley:

Also greenmark on execution, but no change. Changing to Fahrenheit/Celcius works when using attribute: 0x0000 = 0