Temporarily disable binary sensor?

I have a binary sensor that captures MQTT signals from Blue Iris when there is activity on the security camera at my front door. This is exposed via HomeKit and works GREAT!

But… I have an automation set up that turns the lights on my porch on/off at dusk/dawn. The change in lighting is “seen” as action on the camera and triggers the motion detector. Is there a way to temporarily disable the binary sensor just before the automation toggles the lights?

I guess I could create a temporary input Boolean and then another template binary sensor to “and” with the MQTT binary sensor. But that seems very hacky.