Arming arm_home while bypassing a sensor

Hi id like to know of an automation script to arm my home while we are home while bypassing a specific zone/sensor (upstair windows) during summer. Thanks!

You could create a custom arm mode (like arm_home_summer) in the manual alarm control panel.

Thanks for the reply.
Would you happen to have a template? Just so I can better understand how that is done. Thanks!

Have a look at Alarmo

No that I thought a bit more about it, would rather add a condition (don’t trigger if summer and entity that triggerd is the upstairs window) to the exisiting automation that triggers the alarm.