OK, so I made a contraption, which seems to be working... i attached the sensor to the top bar of the door opener system as shown below. The problem now is, that when the door opens, the contact sensor will read closed, and when door is closed, sensor will read open. It would have been nice, if in the myQ hubitat app itself, I could toggle a switch to invert the contact sensor status.
I found that the contact sensor driver ("Zigbee - Sonoff contact sensor") has an option to invert state! This should do for now.
Well, the “right” way to fix that would be to invert the sensor status in the sensor driver. Not sure whether the sensor driver you are using provides that capability.
Lacking the ability to invert the sense in the sensor driver, a rather straightforward workaround would be to make a virtual contact sensor or switch, then have a simple rule triggered on changed status of your garage door sensor, then have the rule set the virtual sensor appropriately based on the status of the garage door sensor.
Edit: Looks like you found the solution in the driver while I was typing a reply.
An artifact of your solution as compared to mine is that your contact sensor is reading “fully open”, whereas mine is reading “closed”. This means that mine will detect if someone pries/lifts the door open, whereas your solution will not.
saurabh9 - HOW? did you make the change? thanks
OK, I changed my device driver from "myq garage door opener-nosensor" to "myq garage door opener", and made sure the app had my contact sensor showing, and the error is gone. Just tested and the contact sensor is updating the door status on my device!! Nice.