zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Tuya RB-SRAIN01 no longer updates in 2.1.0

Open JSVHolmes opened this issue 1 year ago • 36 comments

What happened?

Tuya RB-SRAIN01 was previously updating values as normal up to v2.0.0, however after updating to v2.1.0 the device still updates last seen every minute, but none of the other values update anymore. Reverting back to v2.0.0 restores all values back to updating as normal.

I am using Zigbee2MQTT via a Contianer and using Home Assistant 2025.1.4 (also in Docker) to record the values.

It is possible that the "Reportings" have been wiped, although this seems to be the same on the older version, under "manuSpecificTuya" there are no attributes listed for this device.

What did you expect to happen?

The same behaviour as before, Illuminance and rain sensors should update.

How to reproduce it (minimal and precise)

Have the Tuya RB-SRAIN01 sensor under version 2.0.0 and update to 2.1.0, the values on the device no longer update

Zigbee2MQTT version

2.1.0

Adapter firmware version

20230507

Adapter

SONOFF Universal Zigbee 3.0 USB

Setup

Docker Container

Debug log

No response

JSVHolmes avatar Feb 02 '25 13:02 JSVHolmes

Same Probleme here, but not in docker. Except the rain sensor works for me but iliminance, rain intensity and battery not updating only showing null.

Malte42 avatar Feb 02 '25 16:02 Malte42

Confirmed. After upgrading to Zigbee2MQTT 2.1.0, all reported values from the TS0207 [RB-SRAIN01] (_TZ3210_tgvtvdoc) device remain frozen.

Troubleshooting Steps Taken: Attempted re-pairing the device Reconfigured device Observed that only the "link quality" and "rain true/false" updates, even when pressing "Interview".

Home assistant OS Core 2025.1.4 Supervisor 2024.12.3 Operating System 14.2

Sergey7up avatar Feb 02 '25 17:02 Sergey7up

Same here, going back to 2.0.0 everything works with this device.

SargonofAssyria avatar Feb 02 '25 17:02 SargonofAssyria

Same problem here

cedarearthy avatar Feb 02 '25 19:02 cedarearthy

Same problem too

keidischoi avatar Feb 03 '25 10:02 keidischoi

Same problem too

murianwind avatar Feb 03 '25 10:02 murianwind

Same issue here

pantherale0 avatar Feb 03 '25 12:02 pantherale0

...and here

andrazek avatar Feb 03 '25 13:02 andrazek

I went back to 2.0.0-dev, it works fine initially but after half a day the device does not update anymore. Will try to include it again and see what happens.

SargonofAssyria avatar Feb 03 '25 13:02 SargonofAssyria

I've also noticed that the device stops reporting after a few days or even sooner. However, I didn't experience these issues between November and mid-January. I've now moved it closer to the coordinator to see if distance was a factor, though the LQI has consistently remained above 100.

andrazek avatar Feb 03 '25 14:02 andrazek

I don't think the distance is a problem, mine is much closer to my coordinator and multiple routers than some other devices on my ZB network that are working fine.

Generally I don't experience any problems with this. I've restored back and no problems so far.

pantherale0 avatar Feb 03 '25 15:02 pantherale0

I got the same Problems. I've seen the following errors for the device:

Received network/route error ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY for "42613".

Marbie2024 avatar Feb 03 '25 17:02 Marbie2024

Same problem here. After back to version 2.0 O all started to works fine.

Sergi-CP avatar Feb 03 '25 18:02 Sergi-CP

Ok, I found the problem with this and probably some other Tuya devices. This line https://github.com/Koenkk/zigbee-herdsman-converters/commit/d7f9a3c1aeccd1cd3e912ebe07fa8b337fbcda3d prevents Zigbee packets for Tuya devices from being reprocessed if the sequence ID is the same, but the rain sensor always sends its data with the same sequence ID:

[2025-02-03 19:50:39] debug: 	zh:controller: Received payload: clusterID=61184, address=52189, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=116, frame={"header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":153,"commandIdentifier":6},"payload":{"seq":256,"dpValues":[{"dp":105,"datatype":2,"data":{"type":"Buffer","data":[0,0,1,241]}}]},"command":{"ID":6,"parameters":[{"name":"seq","type":33},{"name":"dpValues","type":1011}],"name":"activeStatusReport"}}

[2025-02-03 19:51:39] debug: 	zh:controller: Received payload: clusterID=61184, address=52189, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=116, frame={"header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":156,"commandIdentifier":6},"payload":{"seq":256,"dpValues":[{"dp":105,"datatype":2,"data":{"type":"Buffer","data":[0,0,1,246]}}]},"command":{"ID":6,"parameters":[{"name":"seq","type":33},{"name":"dpValues","type":1011}],"name":"activeStatusReport"}}

jpbede avatar Feb 03 '25 19:02 jpbede

Same issue here. Any solution?

Update: After downgrading to 2.0.0, sensor is working again (and it's one of my most important ones). So looking forward to have this issue fixed before upgrading to 2.1.0.

crguez avatar Feb 03 '25 20:02 crguez

Also notice this behavior after the update. Tested and working fine on the SmartLife app, but not in HA.

ElementZoom avatar Feb 04 '25 19:02 ElementZoom

Same problem here. waiting for a new update.

francouai avatar Feb 05 '25 06:02 francouai

Should be fixed by https://github.com/Koenkk/zigbee-herdsman-converters/pull/8723

Is currently available in the dev branch or in the next release which is every 1st of the month.

jpbede avatar Feb 05 '25 06:02 jpbede

+1

DoWenzl94 avatar Feb 05 '25 08:02 DoWenzl94

Let me know if it works in the dev branch, I'll create a new z2m release after that.

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

Koenkk avatar Feb 05 '25 20:02 Koenkk