Motion Sensor Change Button Reset at Midnight

I’d like to set up a configuration that would activate a button (custom button card) on a dashboard to light up if motion is detected on a motion sensor. The button would stay active until midnight, then it would reset to not activate. Basically want a visual indicator the mail has been delivered for the day.

Any ideas on how to setup that up so it resets at midnight?

Input boolean? Automation to turn it on when motion is detected and another to turn it off at midnight. The input boolean is the entity associated with the button (not the motion sensor).

Guess I have not done that before, but can look into it.