Manually set state for X duration

Currently I am receiving camera notifications on Telegram. However, when working in the garden i would like to temporarily disable the alerts using a Telegram keyboard selection.

I have everything set up and working, except for a way to set the state to “Off” for a selected duration.
Is there a way to force a state to remain in an Off state for any duration of time?

I hope this makes sense. Thanks!