Zigbee sensor (temperature, humidity) refresh rate

Hello,

I use ZHA integration.
I have two Sonoff Zigbee sensors : SNZB-02WD and SNZB-02P

I searched for a long time knowing what is the refresh rate (how often sensor send new value to ZHA).

I finally found the answer by using zha_toolkit custom component.

I used the conf_report_read command to extract these data which are the default one (out of the box) if ZHA doesn’t change them which I don’t know.

Question: How does ZHA configure the reporting of such sensors ?
It’s not documented in ZHA documentation.

=============================================================
SNZB-02WD

Temp:
min = 5s
max = 3600s
change = 0.5°C

Hum:
min = 5s
max = 3600s
change = 3%

=============================================================
SNZB-02P

Temp:
min = 30s
max = 900s
change = 0.5°C

Hum:
min = 30s
max = 900s
change = 1%

Looks like you need to use zha_toolkit and with the conf_report command

Yes I can do it with zha toolkit.
The question was to know what is done by ZHA core integration ?
When you add a device does ZHA configure the reporting or not ?

it probably takes the defaults from the firmware.

I solved this issue using a simple automation taken from HERE:

  trigger:
    - trigger: time_pattern
      minutes: /5
  action:
    - action: homeassistant.update_entity
      target:
        entity_id: >
          {{ integration_entities('sonoff') 
            | select('search', 'temperature|humidity') | list }}

Do you really need an update every 5 minutes though? Won’t that drain the battery unnecessarily?

AFAIK, the change parameter somewhat overrides the time-based reporting config. It will send an update if the temp change is greater than 0.5°C and the last report was greater than 30s (min parameter) ago.

Apart from the humidity on the SNZB-02WD only reporting at 3% delta, I don’t see anything wrong with the default config for those sensors. Even then, it only becomes a problem at much higher humidity (moving from 90% > 92.6% won’t trigger a report, but 90% > 92.7% will).

Not anymore.

As in my case the Sonoff SNZB-02 (not SNZB-02WD) sensors here were problematic: They tended to stop sending temperature and humidity data alltogether although still connected to the Zigbee network. Hence I searched the forum for a solution to the latter and found Tara’s automation as a workaround which worked quite well (configured to 15 minutes update interval).

However, I finally got around this issue by reflashing the original firmware of all Sonoff SNZB-02’s with the alternative EFFEKTA firmware (see my post HERE). No problems anymore with these Sonoff’s ever since without any additional automations needed.

1 Like