Sonoff SNZB-02 Temp Sensor Reporting Interval

So I figured out how to fix this issue in ZHA, though it’s kind of not recommended since it involves sshing into the core and changing a line in the code.

The problem is the following line in the zha component of core:

Here we se that in the config for temperature Measurement a value of 50, or 0.5 degrees, is hardcoded into zha.

I have sshed into the core and changed this line by hand, afterwards you have to reconfigure or reconnect the device in ZHA, then you can enjoy the interval however you like.

I set it to 20 since it seems to give me messages when temp changes 0.1-0.2 degrees.

However this is not recommended since:

  1. don’t ever ssh into the core if you don’t know what you are doing
  2. this will probably break with every update to core.

Now what would be the next steps ?

Well imho, ZHA should do 2 Things:

  1. Add the Option to set those global Variables in configuration.yaml
  2. Add the option to set those values for each device individually inside of the zha GUI.

If someone can explain to me how to access data from configuration.yaml inside of the core code I might be able to build a PR for 1.

Can someone maybe tell me how to contact zha devs most efficently so this can be fixed asap ?

I think I understand how to pull values out of configurtion.yaml and might be able to add a PR.

2 Likes