NEWBIE EXAMPLE
In the summer, I sometimes manually “crack open” our multi-panel rollup garage door a few inches during the evening to let accumulated heat out. I have a MyQ rule that closes the door at midnight. [I have not automated the opening using a temperature sensor yet because I haven’t set up a Zigbee interface to the garage door opener.]
I track the OPEN/CLOSE state of the door using two ThirdReality Zigbee contact sensors. One sensor, mounted on the side of the door, indicates OPEN when the door has moved the length of the magnet (less than about 1.5 inches).
The second sensor is mounted on an inexpensive hinge on the top panel of the door. The door must open sufficiently for the top panel to become substantially non-vertical before the sensor will trigger (typically about 8-10 inches of door travel). See the pictures below.
With this setup, opening the door about 6 inches triggers the side sensor, but not the hinged top sensor. [Note that I also have a ThirdReality Zigbee tilt sensor on the door, but I find that device to be very unreliable and its coming off soon.]
I have one Rule Machine rule that alerts me (via a Google Nest Mini speaker) when either sensor registers OPEN (I can’t hear the door mechanism working from my office).
I have a second rule that is triggered ONLY by the hinged top sensor (OPEN for 2 seconds) or at a system start and provides alerts ONLY IF the garage door is open for 20 minutes or more (I cribbed the basis for this rule from someone on this forum, sorry, I forgot the name). The rule will continue to update the number of minutes the door is OPEN until the door is CLOSED. See the rule example below.
By using the second “slow reacting” contact sensor to trigger the second rule, I can crack the door open a few inches without triggering the second rule (and its ongoing notifications) but I still get the brief alert from the first rule even if I open the door only a little.
Hope this helps someone!
PHOTOS:
Contact sensor mounted on the side of the garage door:
Contact sensor mounted on the top panel of the garage door -- CLOSED state (top panel is vertical):
Contact sensor mounted on the top panel of the garage door -- OPEN state (top panel is horizontal):
RULE EXAMPLE:



