Skip to content

The change to the existing illuminance sensor in the Tuya rain sensor (RB-SRAIN01) is not correct. #30439

@wesleyRaposo

Description

@wesleyRaposo

What happened?

Until version 2.7.0-1, the existing illuminance sensor in the Tuya rain sensor (RB-SRAIN01) worked correctly with Zigbee2Mqtt.

From version 2.7.1 onwards, the sensor started having problems with Home Assistant because they changed the illuminance unit from "lux" to "mV" (millivolt), which would be its correct unit.

Since Home Assistant does not recognize this unit (mV - millivolt), they removed the original illuminance sensor with the "lux" unit and created a new sensor called "Raw Illuminance," which was released in update 2.7.2-1.

The problem is that this "new sensor" does not report any unit. Because of this, Home Assistant does not recognize it as a sensor that records history. Therefore, it cannot be associated with any card that generates a graph with the measurement history, as it is only a numerical sensor.

Although we know that this device does not record illuminance in "lux" but rather in "mV" (millivolts), I would like the original "lux" sensor to function again, as what interests us is being able to record the measurement history. This is essential for fine-tuning our automations and being able to compare what is recorded at different times of day with different sensors spread out.

To avoid displeasing anyone, the current sensor called "Raw Illuminance" and the original illuminance sensor associated with the "lux" unit can coexist peacefully in the same device, and each user can adopt what is most convenient for them.

Thank you.

Device:
https://www.zigbee2mqtt.io/devices/RB-SRAIN01.html#tuya-rb-srain01

What did you expect to happen?

That the illuminance unit be properly recognized by Home Assistant (as it was before) so that I can continue to have access to the measurement history through graphs.

How to reproduce it (minimal and precise)

Install the Tuya TS0207 rain sensor and update Z2M to version 2.7.2-1.

Zigbee2MQTT version

2.7.2-1

Adapter firmware version

EmberZNet 7.4.5 [GA]

Adapter

Zigbee2MQTT Bridge (Dongle M)

Setup

Hardware: Raspberry Pi 4b.
Método de instalação: Home Assistant OS
Core: 2025.12.4
Supervisor: 2025.12.3
Operating System: 16.3
Front-end: 20251203.3

Device database.db entry

No response

Debug log

It's not necessary.
It's not a device error, but a change they made to its illuminance sensor.

Notes

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions