Zigbee device issue with Tuya RB-SRAIN01

Not totally sure where I should ask this.

The situation is a newly bought rain sensor, Tuya RB-SRAIN01. I’m having slight issues because the low sunlight means the battery is struggling and it’s dropping off the network at night.

The trick is… come the morning it does not seem to come back “online” - I’ve got to re-pair it… and enter the rinse and repeat cycle.

I get the following on an interview…

info 2024-12-14 09:14:18z2m: Interviewing 'Rain Sensor'
error 2024-12-14 09:14:19zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
error 2024-12-14 09:14:19zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
info 2024-12-14 09:14:28z2m: Successfully interviewed 'Rain Sensor'
info 2024-12-14 09:14:28z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/interview', payload '{"data":{"id":"Rain Sensor"},"status":"ok","transaction":"og363-1"}'

So I’m not sure what to make of this. On the face of it, it looks like I’m going to have to re-pair this device every time the battery runs flat.

Grateful for thoughts, before I consider cutting it open (destroying the rain protection) and hooking in an extra solar panel or something.

I’ve managed to find out that restarting the Zigbee integration when the rain sensor is talking again, brings it back on line with no issues. As a result I’ve created the following to restart Zigbee at 9am if the rain intensity sensor is unavailable. Hopefully, over time, the battery will get enough sun on the good days, to put the battery in a place where it can survive the nights.

alias: Restart Zigbee at 9am if Rain unavailable
description: ""
triggers:
  - trigger: time
    at: "09:00:00"
conditions:
  - condition: state
    entity_id: sensor.rain_sensor_rain_intensity
    state: unavailable
actions:
  - action: hassio.addon_restart
    data:
      addon: 45df7312_zigbee2mqtt
mode: single