homebridge-mi-aqara icon indicating copy to clipboard operation
homebridge-mi-aqara copied to clipboard

Aqara Motion Sensor show 0.0001 Lux all the time.

Open malmentm opened this issue 6 years ago • 11 comments

Anyone knows why this happens?

malmentm avatar Jun 23 '18 12:06 malmentm

check log with debug mode run. make sure new lux value package is come over.

YinHangCode avatar Jun 24 '18 16:06 YinHangCode

@YinHangCode How i can i do that? is it hard?

malmentm avatar Jun 24 '18 18:06 malmentm

same problem

nikolaevigor avatar Jun 27 '18 19:06 nikolaevigor

artboard

so the problem is when ambient light getCurrentValue is triggered there can be different types of events in input. like in a first place its lux and in second is motion. and if there is motion in input the value is null and default value is 0.0001. I managed to fix this by setting default value to current ambient light value @YinHangCode

nikolaevigor avatar Jun 30 '18 14:06 nikolaevigor

@nikolaevigor how can i add this fix to my config? :)

malmentm avatar Jun 30 '18 19:06 malmentm

@malmentm I fixed it not via config. I modified source code so default value passed to handler is the current value.

nikolaevigor avatar Jul 01 '18 09:07 nikolaevigor

@nikolaevigor maybe @YinHangCode can inplement this in a feature version? :)

malmentm avatar Jul 03 '18 12:07 malmentm

Is this updated @YinHangCode

FamJohansson avatar Jul 10 '18 07:07 FamJohansson

Hi there, Having the same issue. @nikolaevigor Could you let us know what you changed in the source code? @YinHangCode Could you please update to fix this issue?

SirNoble avatar Jul 13 '18 02:07 SirNoble

Having the same issue. I wanted to use the sensor to trigger the lights if motion is detected and it's dark.

joshkreud avatar Oct 28 '18 14:10 joshkreud

The same as me. Hope to fix it, thank you.

coobin avatar Nov 01 '19 10:11 coobin