MQTT brightness with garage closed

When the garage is closed the brightness reported is always 29 or 30%. If I cover the reflector (opening the garage without actually opening it) the brightness immediately drops to ~3%. When I actually open the garage door it displays >95%

Is there a reason it doesn’t report the correct value when the door is closed? Am I doing something wrong in the setup?

Is there a lamp on your opener? It is possible that the light from the lamp is reflected into Garadget’s photo sensor. What is the brightness reading when the lamp is off?

There is a lamp on the opener, however this happens when the lamp is off or on.
Recently I changed the MQTT topic to match the device id and the brightness now changes sometimes but it is still not matching the actual brightness of the garage.
Here is an image of the brightness level in a 24h period without the garage door opening at all. The garage light may have been on a few times but there is no spikes in the brightness above ~35% (the lights are bright).
I have also checked the brightness with MQTT Explorer and the results mirror the Home Assistant image.

Here is another 24 hour period without opening the door

Here is what happened when I opened and then closed the door. You can see when I opened the door, it updated to be the correct brightness before updating to bright as the door fully opened. Then when I closed the door it got lower until it fully closed when it changed to ~30% again

I’m trying to understand if the issue is with the measurement or reporting. Does the ambient light from the mobile app match the values reported over MQTT?

Yes the app measurement matches the MQTT measurement. I guess adding MQTT has added to the confusion here.

From your initial message it sounds like the photo sensor is picking some reflection from the retro-reflective tag on the door. For this to happen the source has to be aligned in front/behind/next to the sensor, that’s why I asked about the lamp on the opener. If there is no other sources of light, the only thing I can think of is some residual light from the laser.

To test this theory, instead of covering the reflector, please try covering the laser in the way that the light from it doesn’t reach the reflective tag or leaks into the photo sensor.

BTW: This issue is device/situation specific: I don’t observe it in other units.

I covered it to make sure that nothing else is reflecting light and it’s still 30% brightness when the garage door is detected as closed.
Wouldn’t there be the same reflecting problem when the reflector is removed if it was something else reflecting onto it?
In the last 2ish weeks my mqtt also stops working sporadically. To fix I need to recycle the power. The app is fine. None of the status items work and commands to open/close/update also don’t work. Once I turn off and on the power it works for about 11-16 hours before happening again.

Here is the error I get in MQTT
1638248566: New client connected from as auto-BC83F5C7-1892-0121-218B-D9BC29466AF3 (p2, c1, k15, u’mqttuser’).
1638248566: Socket error on client auto-BC83F5C7-1892-0121-218B-D9BC29466AF3, disconnecting.
1638248587: New connection from on port 1883.
1638248587: New client connected from as auto-5D3C7074-BBCF-45D8-0EAC-98E597ED058C (p2, c1, k15, u’mqttuser’).
1638248587: Socket error on client auto-5D3C7074-BBCF-45D8-0EAC-98E597ED058C, disconnecting.
1638248608: New connection from on port 1883.
1638248608: New client connected from as auto-5A953AFE-F1A0-06B0-2CEC-D52FC1C92C60 (p2, c1, k15, u’mqttuser’).
1638248608: Socket error on client auto-5A953AFE-F1A0-06B0-2CEC-D52FC1C92C60, disconnecting.
1638248629: New connection from on port 1883.
1638248629: New client connected from as auto-94643254-DF3C-0BCB-D18A-B69E8C21C913 (p2, c1, k15, u’mqttuser’).
1638248629: Socket error on client auto-94643254-DF3C-0BCB-D18A-B69E8C21C913, disconnecting.
1638248650: New connection from on port 1883.
1638248650: New client connected from as auto-09D41A60-9895-1804-9D91-BBDF449B1C86 (p2, c1, k15, u’mqttuser’).
1638248650: Socket error on client auto-09D41A60-9895-1804-9D91-BBDF449B1C86, disconnecting.
1638248671: New connection from on port 1883.
1638248671: New client connected from as auto-8BA705A9-566F-8047-8CAE-3AD4FEAB9B72 (p2, c1, k15, u’mqttuser’).
1638248671: Socket error on client auto-8BA705A9-566F-8047-8CAE-3AD4FEAB9B72, disconnecting.
1638248692: New connection from on port 1883.
1638248692: New client connected from as auto-241D6C90-CA42-7039-9A2B-76B25D750B04 (p2, c1, k15, u’mqttuser’).
1638248692: Socket error on client auto-241D6C90-CA42-7039-9A2B-76B25D750B04, disconnecting.
1638248713: New connection from on port 1883.
1638248713: New client connected from as auto-5CF3C116-14B8-781D-EBF7-2B0299EECD0B (p2, c1, k15, u’mqttuser’).
1638248713: Socket error on client auto-5CF3C116-14B8-781D-EBF7-2B0299EECD0B, disconnecting.
1638248734: New connection from on port 1883.
1638248734: New client connected from as auto-AFCAFAF7-4189-6482-8D17-188BF35B4477 (p2, c1, k15, u’mqttuser’).
1638248734: Socket error on client auto-AFCAFAF7-4189-6482-8D17-188BF35B4477, disconnecting.
1638248755: New connection from on port 1883.
1638248755: New client connected from as auto-FBA2B040-77D7-D06D-BA2A-1FD785C4C01B (p2, c1, k15, u’mqttuser’).
1638248755: Socket error on client auto-FBA2B040-77D7-D06D-BA2A-1FD785C4C01B, disconnecting.
1638248776: New connection from on port 1883.
1638248776: New client connected from as auto-1012E91E-D7CD-7052-2B7B-791192807F14 (p2, c1, k15, u’mqttuser’).
1638248776: Socket error on client auto-1012E91E-D7CD-7052-2B7B-791192807F14, disconnecting.
1638248797: New connection from on port 1883.