Zigbee2mqtt: Support for raw brightness from a millimeter sensor

Hello,

I’ve just received the Tuya ZG-205Z/A control via MQTT | Zigbee2MQTT

It is properly recognized by Zigbee2mqtt:
![image|690x385](upload://pQUU5DlHWyr

In my opinion, you only need the presence feature; the others are just configuration.
I already have 3 at home and I only use the presence feature.

At least the brightness still needs to be added.

Besides, I don’t mind going through zigbee2mqtt for the config.

Indeed, brightness is very useful!

However, on my end I do have both of these features :thinking:

in the Z2M state tab my illuminance is called illuminance_lux

can you screenshot the JSON please?

ex :

Mine is simply illuminance:

{
    "fading_time": 5,
    "illuminance": 722,
    "indicator": "ON",
    "large_motion_detection_distance": 6,
    "large_motion_detection_sensitivity": 6,
    "linkquality": 114,
    "medium_motion_detection_distance": 4,
    "medium_motion_detection_sensitivity": 8,
    "motion_state": "large",
    "presence": true,
    "small_detection_distance": 4,
    "small_detection_sensitivity": 8
}

If you want the illuminance report, I can add it.

Warning, some devices provide both features, illuminance and illmuninance_lux…

and the 2 values are not the same?

Maybe, but on my side illmuninance_lux is typed into gladys and not illuminance for @Hizo :slight_smile:
Is this a new feature?

One of the two is in lux units, the other I don’t know. Check on the zigbee2mqtt website.

The other one is the raw value
![image|690x

In any case, if there’s a way, I want the info to be added even if the unit isn’t specified.

thanks :slight_smile:

I’ll take a look as soon as I have a bit of time.

3 Likes

So maybe we should rename the request, since millimeter sensors are handled properly?

Support for a millimeter sensor
=>
Support for the raw brightness of a millimeter sensor

1 Like

I added Zigbee2mqtt to the title + a Zigbee2mqtt tag