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?
rule "Xiaomi Aqara Motion Sensor"
when
Item hallway_motion_state changed from OFF to ON or
Item hallway_motion_state changed from ON to OFF
then
hallway_motion_timer.sendCommand(55)
if (hallway_motion_state.state == ON) {
if(hallway_motion_illumination.state < 50) {
gate_light_switch.sendCommand(ON)
}
} else {
if(gate_light_switch.state == ON) {
gate_light_switch.sendCommand(OFF)
}
}
end
For me it seems like when no motion detect (channel lastMotion change) than channel illumination not change hard to use it for detection if its dark or not
I use channel lastMotion changed in rule because this value udate quite often - interval is few seconds