Use an input_boolean to store if the sensor has already fired.
When the sensor fires the first time, turn it off (or on).
Add a condition to your automation that checks the input_boolean's state.
Add another automation that turns it on (or off) again e.g. each midnight.
I’m using the same principle to have my kitchen-Alexa play it’s “good morning” routine followed by turning on some radio stream every morning I enter the kitchen.
I like the look of that. I guess I could set that time limit to be if it’s not seen motion for a few hours, and then just have the automation run between the hours that I already have set.
Cheers - I’ll have a play with that when I get a chance!
the way I’ve done this for my vacuum is to not trigger again if triggered in the last 6h (6h for you between 03:00 and 09:00)
This way it will only trigger once, not need to add the motion sensor “complication”