Okay so thanks for all of the replies guys. I fixed it, but I don't know how. Lets go on a journey.
I was originally noting down step by step everything I was trying in case it helped, taking on board the information above. This info is exact too as I was using text to speech saying everything as it happened.
- Removed the device using my pc. Hold device button until blue light came on and Re-Paired device within 30cm of hub using hubitat android app on phone. Blue light on device started blinking every 2 seconds.
- It paired, device light stays solid for 3 ish seconds then went out.
- Hubitat android says found "Xiaomi Mijia Smart Light Sensor GZCGQ01LM".
- Device page on pc Shows States: rawLux : 0, presenceUpdated : 1678958971116, illuminance : 0, presence : present.
- Clicked configure. States: configuration : complete. Nothing else changed.
- Removed the device again using pc and setup my pc to view live zigbee logging while redoing steps 1-3 the same way.
- The blue light on the device stayed on for longer this time. Like 8 seconds. I'm the same distance I was and paired it using the same android.
- This was the Zigbee Log on my pc. Might help someone.
Lux2023-03-16 19:39:39.371 profileId:0x104, clusterId:0x400, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-67
Lux2023-03-16 19:39:36.351 profileId:0x104, clusterId:0x400, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-67
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:24.276 profileId:0x104, clusterId:0x400, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-58
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:23.268 profileId:0x104, clusterId:0x400, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-69
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:20.551 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-61
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:20.349 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-67
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:18.538 profileId:0x104, clusterId:0x1, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-65
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:18.335 profileId:0x104, clusterId:0x1, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-64
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:17.328 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-66
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:17.025 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-71
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.923 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-66
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.822 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-68
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.720 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-71
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.618 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-70
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.516 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-69
Xiaomi Mijia Smart Light Sensor GZCGQ01LM2023-03-16 19:39:16.414 profileId:0x0, clusterId:0x8021, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-74
Xiaomi Mijia Smart Light Sensor2023-03-16 19:39:16.111 profileId:0x104, clusterId:0x0, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-71
883D2023-03-16 19:39:16.009 profileId:0x104, clusterId:0x0, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-68
883D2023-03-16 19:39:15.907 profileId:0x104, clusterId:0x0, sourceEndpoint:1, destinationEndpoint:1 , groupId:0, lastHopLqi:255, lastHopRssi:-71
883D2023-03-16 19:39:15.705 profileId:0x0, clusterId:0x8004, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-70
883D2023-03-16 19:39:15.402 profileId:0x0, clusterId:0x8005, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-71
883D2023-03-16 19:39:14.892 profileId:0x0, clusterId:0x13, sourceEndpoint:0, destinationEndpoint:0 , groupId:0, lastHopLqi:255, lastHopRssi:-70
- I open the device on my pc and look!
Current States
- illuminance : 38
- presence : present
State Variables
- rawLux : 15911
- illuminanceDirection : brightening
- presenceUpdated : 1678959579287
I did nothing else different during the 2 seperate parings other then having the zigbee log open on my computer, and that makes no sense to me either. I didn't even need to click configure.
I would remove the device to provide a zigbee log when it doesn't work but i've been trying to get it to report for almost a week. So I can't help anyone with how it started working.
Thanks to everyone for the help and thanks to @birdslikewires for the device code.
Edit: Maybe my smartthings hub had something to do with it? The 2 are within 1m of each other. Looking in the ST API my hub is running on channel 14 though.
I'm gonna buy another one, they are on special. Maybe we could get some answers then.
Edit2: something else I noticed is in the device list, everything else has a source of system but the lux sensor has a source of user. Normal?