Flow to use brightness sensor in Aqara Motion Sensor?

Maybe this can help.