question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTCGQ11LM does not expose illuminance_lux

See original GitHub issue

I might be mistaken, but if I look at the RTCGQ11LM_illuminance converter in fromZigbee.js, I’d say it actually exposes illuminance_lux (meaning a value exposed in lux and not a “raw measured value”).

Note that there is a comment in there as well:

// DEPRECATED: only return lux here (change illuminance_lux -> illuminance)

Currently the exposes information mentions the following in the device definition:

exposes: [e.battery(), e.occupancy(), e.illuminance().withUnit('lx')],

I think this should be:

exposes: [e.battery(), e.occupancy(), e.illuminance_lux()],

Or perhaps the following if illuminance_lux is considered deprecated:

exposes: [e.battery(), e.occupancy(), e.illuminance_lux().withProperty('illuminance')],

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Koenkkcommented, Dec 29, 2020

Good, #1994 is a bit of a workaround but acceptable for now. Assuming this can be closed.

0reactions
itaverocommented, Dec 29, 2020

Currently I base most of the mappings on the provided the type and name (and the presence of certain features in some cases). I might add a check on unit as well in cases where it is currently provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi RTCGQ11LM control via MQTT - Zigbee2MQTT
Integrate your Xiaomi RTCGQ11LM via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.
Read more >
Xiaomi Aqara motion sensor illumination value doesn't update ...
It looks like there are some cases when it updates the luminosity even if there is no motion detected. Big change in the...
Read more >
aqara motion sensor p1 home assistant - Dabasdati.lv
Previous Aqara Motion Sensor RTCGQ11LM shows illuminance/lux in Home ... Initial reports are the Aqara P1 contact sensors don't play nice with non-aqara ......
Read more >
HomeKit Controller not exposing LUX sensor for Aqara devices
Hi,. I would like to use the illuminance sensor value of my Aqara Motion Sensor P1 device in Home Assistant. The HomeKit Controller ......
Read more >
Experiences with Aqara RTCGQ11LM Motion Sensors?
The Aqara sensor exposes the Light level values. WIM... Look like the Aqara is not being added to HS3 100% correctly - see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found