Toggling sensors

Hi there I have sensors in every room (about 7) and my pets set these off all day when I’m at work wasting electricity.

Is there a way I can have a button press next to the door to turn off the sensors and when I’m home a button to activate them?

I’ve tried to do so using automation and its not working with the app.

Thanks!