How do I get lux / light sensor information från Xiaomi Aqara?

I’ve read that several of you who use Xiaomi Aqara Motion Sensors can see/use lux attribute in Home Assistant. How do I get a hold of that attribute?
In the Xiaomi Home app I see the lux value for each sensor but in HA all i get is:

binary_sensor.nnnn_nnnnn
No motion since: '1800'
voltage: 3.02
battery_level: 45
friendly_name: Plan 1
device_class: motion

What attribute should I query?

AFAIK there are different types of Xiaomi/Aqara motion sensors, not all may provide a luminance reading.

I use a deCONZ integration and for my motion sensors HA creates a binary sensor for motion and two sensors for luminance and battery.

image

I use the Xiaomi Hub to connect the sensor. Perhaps it is not possible to get the light reading from that integration? (I know the sensor can do it because I see the attribute in Xiaomi App)

I have a similar configuration, with Xiaomi Gateway and Aqara motion sensors. There are two sensors created for each device, a “binary_sensor”, which is the one you are looking at, and a “sensor”, that includes the luminosity detected by the device. There is the lux attribute, not in the “binary_sensor” entity.

Regards.

Ah, thats right!! Now to figure out which is which… =)
Thank you!

It should have the same number as in the “binary_sensor”.

Anyway, you know you can change the names, don’t you? :slight_smile:

I already renamed the binary sensor, so yeah, I got that! :wink:

Hi everybody
How to do for that the light sensor appears in the integration. I
Integration is done with HomeKit, bridge is Aqara.
The integration list humidity, temperature for all temp sensors.
But in the case of move sensors, I only have the binary one.
Thx

Hi
Same for me.
I’m unable to find the light sensor, neither on aqara and mija ones. Anyone found the right way ?

I have the same issue, I have the motion sensors added through homekit controller. I have the aqara G2H as the hub. The lux or light sensors does not show up as one of the entity. Only battery and motion sensor. Does anyone know how to add it?

hi i have the same problem

Hi to all. I have the same problem. Only binary motion sensor added.
Aqara HUB + Aqara Motion sensor with illumination.
I can see illumination sensor in Aqara App, but can’t add it to HA

1 Like

Hi,

Any news on Homekit Controller recognizing light sensor on Aqara Motion Sensor?
I know it should create a different entity on the device, but it doesn’t.

I have the Aqara Hub and attach it to HomeKit on the iPhone as a Bridge. Delete it so it is now exposed to Home Assistant HomeKit and then attach it to HomeKit in Home Assistant but I only get the binary_sensor for Motion and nothing else. If I put the motion detectors in pairing mode and pair them with my HUSBZB-1 Zigbee/Zwave dongle I get ias_zone battery_level occupancy and illumination if I recall correctly. With the HomeKit using the Aqara hub again all I get is a binary_sensor for the detection of motion and no Light Sensor information even though the Aqara app on the iPhone has one. It is not exporting or sending that information to HomeKit in Home Assistant.

I am not sure if anyone here is using the Aqara Hub and integrating that with Home Assistants HomeKit and making a HomeKit Controller for it but that has been my findings after reseting the Aqara Hub and doing this process 3 separate times. The only thing the Aqara hub will give me is Motion Sensor and not the Light Sensor.

Another issue I am having is with the Aqara Mini Switch. The only thing the Aqara Hub reports to Home Assistant HomeKit is sensor information for Battery Level and nothing else.

I was hoping by getting the Aqara Hub I could solve problems like my HUSBZB-1 not picking up the Vibration Sensor (it does do this through the Aqara Hub thankfully) or the Mini Switch. Now through the Aqara Hub it does pick these up but only Battery Level for the Mini Switch and only a binary_sensor for the Vibration Sensor and only a binary_sensor for Motion Sensor information with the Aqara motion sensors.

What a mess. I can’t seem to crack what is going on. Does anyone know how I can get more raw information from Zigbee? I tried using Node Red to look at all zha_event activity but I really don’t see much there that relates to any of the sensors I am working with.

+1 - setup Aqara hub as HomeKit Controller in HA - can see sensors for motion and battery but not illuminance… any thoughts? Lux sensor is there when I look through Aqara app

1 Like

Same issue here. No lux sensor from Aqara G2H cameras or RTCGQ11LM motion sensors when connected to HA using HomeKit. Has anyone figured this out since?

I can confirm that this issue still exists for my Aqara Motion Sensor P1…

In order to expose the lux for your Aqara P1 Motion Sensor, it must not be integrated into any devices yet.

You need to get Zigbee2MQTT (Sonoff Zigbee Dongle-P is best for this IMO) Make sure that you have the Dongle P as Dongle-E will not work (may even need to reflash this, although I didn’t need to).

After your Dongle-P is installed in HA and you’ve restarted and verified that Z2M is running, press and hold the pairing button for your Aqara P1 Motion Sensor. If you Z2M doesn’t immediately recognize it (as happened to me), restart HA. By the time your HA restarts, enter the Z2M UI and you should find the new device available with your lux enabled.

Dongle-E does work fine with latest Z2M for me, Aqara Motion Sensor P1 light sensor is also exposed and working properly with it.

And you didn’t have to flash it?

If so, congrats - I couldn’t get mine to work w/o flashing and couldn’t find the TI file to flash the new firmware