Garage door monitor

Not having much luck getting this to work… At 10pm, i want to check my garage door status and if open, turn on a light. can’t seem to get the checking to work although I can turn on the light with other automations. my hunch is an automation triggers only on a change? Not sure. Any help appreciated.

It works for me but I have it checking my garage door sensor, not my garage door “switch’

You may want to check out the Garage Door Manager app, it can close your garage on a schedule if it’s open: [RELEASE] Garage Door Manager to Open and Close Automatically when People Arrive/Leave with Timer and Actions

I’ll be damned! I just tried it again and it worked. I must have been doing something wrong (stupid) the first time. Thanks.