Shelly motion enable/disable

Is there a way that i can use home assistant to enable/disable my shelly motion sensor?

I have a motion sensor that opens a door to let my dog in but i would like to disable it at night with a lovelace function. Im aware that i can use the schedule in the shelly app but there are times when i would also like to disable it during the day.

Thanks in advance

We’re able to disable an automation, entity, or device . . .

Yes, for Motion and Motion 2 the integration creates the Motion detection switch.