"Unavailable" triggers "door open"

triggers

#1

I have a simple piston to send me a text if my garage door is open and it’s between 10 PM and 5 AM.
It works fine, except that when the garage door sensor becomes “unavailable” like for a low battery, the piston interprets that as “open” and sends me a text.

Here’s the code:

Any suggestions for how to fix this? Would it be better to use (not ‘garage-closed’)???

Thanks for any suggestions!
BT