@halo6 I use Domoticz instead of Vera, but the general idea should work.
Add another child sensor to your parking sensor that is a binary switch. Maybe S_DOOR, V_TRIPPED or S_BINARY, V_STATUS. That switch gets presented to your controller. Then have the parking sensor listen for a message to that child ID and work normally if on or do nothing (but listen for messages) when off.
In Vera, write a small script that turns on the new parking sensor switch when the garage door is open, and turns it back off again when the garage door is closed.
@urbanus in your wiring, did you flip around the leds? (i.e. did you connect the longer pin to the gpio pins instead of to vcc?
With your wiring, are the leds on when there is no traffic?
My guess is that you have reversed the connections. Which is fine, but by default the leds will be on.