[ZHA] Temperature measurement of some Sonoff Zigbee SNZB-02 sensors is no longer updated

I have a dozen of the SNZB-02 sensors and some of them (which is weird) stopped updating the temperature.
The humidity and battery is reported properly, which is really weird.
Whenever I try to re-pair the devices, they publish the updated temperature, but that’s it no updates since then.
I can confirm that the temperature varies over time by more than a 0.5 Celsius degrees.
I even have 2 sensors in the same room (opposite corners) where one device updates the values correctly, but the other one does not (just humidity).

I’m suspecting some bug in ZHA integration (zigpy?).
I asked my colleague to check his setup (HASS user with the same sensors) and he confirmed that he can see a sensor with the last temperature update >1 week ago. Is there anybody else having this issue?

just to update some information:
devices are identified as:
TH01 by eWeLink
Connected via Texas Instruments CC1352/CC2652, Z-Stack 3.30+ (build 20210319)
Home Assistant 2021.12.2

1 Like

I have these sensors but they are listed as

  "manufacturer": "eWeLink",
  "model": "TH01",

My system was updated to Version core-2021.12.3 a few days ago - I am still getting the temperatures.
I have a CC2531 as coordinator.

Thanks for your reply. Yeah, the device name checks out.
I’m using Texas Instruments CC1352/CC2652, Z-Stack 3.30+ (build 20210319).

Home Assistant 2021.12.2 but I’m about to update.

So it looks like I managed to “fix” it.
I’ve done multiple steps and am not sure, which of these were not really needed, so I’ll list all of them:

  • I removed the battery on the problematic sensors and plugged it back after a while

  • I removed the device (not entity) from HASS

  • I re-added them

I was hesitating to do this for a while as I wasn’t sure if I’d loose the data continuity, but HASS managed to assign the entities same id after I gave the devices the original names.

1 Like

I had the same. Paired two times, both times paired well but initially measured values were never updated.

Removed the battery, deleted the device, restarted HA, paired again, now it is updating :blush:

2 Likes

I’m having this exact problem still, temperature and humidity update on repairing, but then either only temperature or humidity will update after that, never both. The sensor is working very unreliably with ZHA and the sonoff dongle plus USB3. Are there any solutions?

1 Like

Usually bad battery or poor reception due to interference and too few (good) Zigbee Router devices, so start by following → Guide for Zigbee interference avoidance and network range/coverage optimization

After that also follow this → https://www.home-assistant.io/integrations/zha#best-practices-to-avoid-pairingconnection-difficulties

I´m having the exact same issue with a second ewelink TH01 in ZHA, that is 1 meter away from the coordinator.
It was working perfectly in zigbee2mqtt with the exact same network, devices, coordinator and so on.

1 Like

Not a day passes and my two sonoff th01 sensors just stop sending info. Reconfiguration doesn’t work.
Using skyconnect for zigbee and thread.
Have some aqara zigbee devices workingnwell with the aqara M2 hub and O added smart plugs as If we routers for the skyconnect siliconlabs coordinator.
Remove battery remove device then try to add them and sometimes it gets stuck adding them, when it works they stop working after a while.
Almost giving up with these sonoff sensors, any help please!
Should I remove my aqara zigbee devices and connect them all directly to HA?
Checked and my wifi is is channel I while my zigbee is channel 22. Not sure what else to do.

Using HAOS btw.

After a long power outage at home (more than 20 hours) all my sonoff zigbee end devices got disconnected (SNZB-01 buttons, DS-01 door switches and SNZB-02x temp/humid).
Have other end devices also from LUMI and TUYATEC that never stopped responding.
My network is 42 devices with coordinator, 20 routers and 21 end battery powered end devices. I’m only using ZHA, not using Zigbee2MQTT.
Did several things to try to fix:
1 - repairing, just long pressing device button until led blinks to get it rediscovered in ZHA, process was initially ok but devices report only first value at pairing and got frozen after that.
2 .- Tried device reconfiguration
a. - Waking-ip device with button short press → reconfigurations failed. Values continue frozen
b. - Waking-ip device with button long press (like when you pair it) → reconfigurations failed. Values continue frozen
3 .- remove device from ZHA and adding it with exact same name (to keep entities names as before). Same behaviour as 1
4 .- remove and add with new name creating different entities, Same as 1.
5 .- At this point (several days) I realised that by SonOff USB ZBdongle-P (CC2652) was running with an old firmware so i updated to last one (20240710). Repeated steps 1 to 5 with same behaviours. No success
6 .- Getting paranoid start looking at Zigbee channels interference and moved coordinator from 11 to 25 using ZHA radio channel Smart option. All routers were reconfigured and i went from step 1 to 5 again with end devices. No success and SonOff end devices continued frozen.
7 .- Ordered an ZBdongle-E to try and a 9dBi RP-SMA antenna for dongle.
8 .- Waiting delivery of new stuff i found how to get devices finally working. Procedure applied was:

A - Remove end device from ZHA
B - Add device with same name as before (for this you long press device pairing button)
C - Immediately after end device is discovered and Name and Area assigned went to device details and ask for Reconfiguration (no more than 15 or 20 seconds after device was discovered)
D - This time reconfiguration really worked and all proper binding/reporting green check marks appeared.

It seems that the reconfiguration process on end devices is only working when device is fully awake immediatly after pairing process.

In my case, having devices properly reconfigured was key to have all readings working again.

Just bought the latest Sonoff temperature sensor - SNZB-02P, and it would only show readings immediately on discovery, and then eventually just go “Unavailable”. Lots of power cycling and re-discovering, and always the same. Steps B, C & D above did the trick! AFAIK, there is no way to do step A. Once discovered, a device can not be removed, just disabled, but putting it into pairing mode, then device discovery, and as soon as it was discovered / configured, went to the device and hit reconfigure. Now, whenever there is a 0.1 degree change, it fires off a reading that is then entered into the database.

1 Like

Just bought two SNZB-02P’s since apparently those have a really high update interval. Had the same issues during the initial pairing as the previous posters. The steps by @facuzestoa (A,B,C,D) made them at least update after the initial discovery. However for me they update in about 5-15 minute intervals, even though the devices are placed right next to the Zigbee Controller. I bought an zigbee controller for those two sensors and have nothing else added in the Zigbee network. Any idea why they are updating that slowly?