-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Signify SML004] Illuminance not working correctly #25379
[Signify SML004] Illuminance not working correctly #25379
Comments
|
That is a partial fix for me ;-) I would still like to access the raw value. In this case the resolution when it's getting dark is bad and the difference between 1 and 4 lux is huge. My do-things-when-its-getting-dark automations do not work nicely anymore because of the bad resolution. The original (raw) sensor had values like 45000 when it's sunny and 0-5000 when it's getting dark. Updated to the pushed fix and the illuminance_lux value is indeed gone now. So your change as you described seems to work - but does not fix my problem. |
I see your point, let's see after the 2.0.0 how many people would like to have |
Please bring back the raw value. OP already thumb'd up! I just have a bunch of illuminance sensors around the house, but the pain is to re-set the automations to the new values! Old values worked like a charm. |
Did both values come directly from the sensor or was one value calculated from the other? |
Why would we ever not want the raw value? If you want a more stable value just use a Helper to avg or something. |
Same issue here. When the day breaks my external sensor goes from 4769 lux to 3011 lux, and from 3011 lux to 1 lux in 10 minutes. Before, each step was around 80 lux. |
All my Xiaomi sensors GZCGQ01LM sometimes report wrong illuminance_lux value. As A workaround, I calculate the illuminance_lux from the illuminance value. I am still running 1.41.0-dev commit: 32e2637 [2025-01-08 11:51:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt2/LuxSensor1', payload '{"battery":47,"illuminance":36711,"illuminance_lux":4688,"linkquality":127,"voltage":2921}' [2025-01-07 12:08:27] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt2/LuxSensor1', payload '{"battery":73,"illuminance":33668,"illuminance_lux":2326,"linkquality":131,"voltage":2959}' With debug on, it seems that when cluster 'manuSpecificLumi', data '{"247": ... is received, wrong illuminance_lux is published. [2025-01-08 13:27:18] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt2/LuxSensor1', payload '{"battery":45,"illuminance":37136,"illuminance_lux":5170,"linkquality":123,"voltage":2918}' correct case: wrong case: |
The Changes will be available in the dev branch in a few hours from now. |
Tested and it works, thanks. This creates a new |
Thanks for restoring the raw values! Would be nice if this workaround was mentioned in the Breaking changes notes #24198 as well, I had to dig around to find it. |
@shrx done! |
What happened?
After updating to z2m latest-dev from the stable version my illuminance sensors have changed.
z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/motion_tuin', payload '{"battery":100,"device":{"applicationVersion":2,"dateCode":"20210830","friendlyName":"motion_tuin","hardwareVersion":1,"ieeeAddr":"0x001788010cdcb3a6","manufacturerID":4107,"manufacturerName":"Signify Netherlands B.V.","model":"9290030674","networkAddress":7082,"powerSource":"Battery","softwareBuildID":"2.53.6","stackVersion":1,"type":"EndDevice","zclVersion":2},"illuminance":3,"illuminance_lux":168,"last_seen":"2024-12-30T15:44:32.570Z","led_indication":false,"linkquality":87,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"temperature":7.38}'
What did you expect to happen?
Before z2m v2 the "illuminance" gave the raw sensor value. This was nice, because it had a good resolution. Now we have:
I would like to use the raw sensor value as before and hoped it would be reported, but it does not seem to work anymore.
How to reproduce it (minimal and precise)
From 1.x update to latest-dev.
Zigbee2MQTT version
latest-dev
Adapter firmware version
20240710
Adapter
UZG-01
Setup
Docker on x86
Debug log
No response
The text was updated successfully, but these errors were encountered: