Garage door opening on its own....middle of the night

@macdenewf if you are using a custom DH you could add a s/w lock function to the DH and create a rule to lock the garage door at night . Of course if the garage is manually open then it unlocks the s/w lock. (it only disables the automation within the DH)
Look at the code I use for my mimolite DH and just take the lock code portion and put in your Linear DH code.
There is also an example in it so a close command can not be executed if the door contacts are closed or the door is in transition (a settable time default set 20 seconds) or open command while in transition.
You do not need to buy a mimolite you can use portions of this code in your own custom DH.
the actual open/close commands are different.