Xiaomi Aqara Motion Sensor Lux Problem


i have a strange behavior and maybe someone can help me.

i get 2 Xiaomi Motion Sensor (Aqara) with Illumination Measurement. I connect them to the Gateway and than found it in Paperui and see in the Log that they send every Minute a Update with the Lux Data. When i now create a item for that Illumination Part i didn´t get informations about LUX. Can anybody help?

Best Regards

Can you see this info in PaperUI/Control?
Post your configurations please.

i see this info in Paper ui but it never change. So all time it is Lux 1000.
here are one of my Items both Configured same:

Number MS_Kuechenfenster_Ilumination “Kuechenfenster Illumination [%.1f]” {channel=“mihome:sensor_motion_aq2:158d000200xxxx:illumination”}

try this:

Number MS_Kuechenfenster_Ilumination "Kuechenfenster Illumination" {channel="mihome:sensor_motion_aq2:158d000200xxxx:illumination"}

i tryed but nothing changed :frowning:

I get changes only when motion is detected,
without motion detection, changes in lighting are not published

Switch		hallway_motion_state		    "state [%s]"					            <motion>        (gRestore)	                { channel="mihome:sensor_motion_aq2:158d0001e56c1c:motion" }
Number		hallway_motion_illumination	    "illumination"				                <light>         (gRestore)                  { channel="mihome:sensor_motion_aq2:158d0001e56c1c:illumination" }
// minimum 5 seconds
Number		hallway_motion_timer	        "timer" 					                <time>			                            { channel="mihome:sensor_motion_aq2:158d0001e56c1c:motionOffTimer" }
DateTime	hallway_motion_last_motion      "alarm [%1$tH:%1$tM %1$td.%1$tm]"           <siren>         (gRestore)                  { channel="mihome:sensor_motion_aq2:158d0001e56c1c:lastMotion" }
Number		hallway_motion_battery          "battery"					                <battery>       (gHistory,gMinLevelBattery) { channel="mihome:sensor_motion_aq2:158d0001e56c1c:batteryLevel" }
DateTime	hallway_motion_battery_update   "update [%1$tH:%1$tM %1$td.%1$tm]"  	    <time>          (gRestore)
Switch		hallway_motion_battery_low	    "battery low"   				            <battery>		                            { channel="mihome:sensor_motion_aq2:158d0001e56c1c:lowBattery" }

rule "Xiaomi Aqara Motion Sensor"
    Item hallway_motion_state changed from OFF to ON or
    Item hallway_motion_state changed from ON to OFF
    if (hallway_motion_state.state == ON) {
        if(hallway_motion_illumination.state < 50) {
    } else {
        if(gate_light_switch.state == ON) {

Olymp: you are absolutly right. I tested it in my office where i move a lot and so i get every minute the ilum Variable.


For me it seems like when no motion detect (channel lastMotion change) than channel illumination not change :frowning: hard to use it for detection if its dark or not :frowning:

I use channel lastMotion changed in rule because this value udate quite often - interval is few seconds