I’ve placed a mixture of Aqara and Eve door/window sensors on all my windows and sliding patio doors. I’ve setup two Apple Home automations to trigger. One when any of those windows or doors open, and the other when they close.
When any one of them open, I set my Ecobee thermostat to away mode.
When one of them close, the automation checks that All of them are closed before resuming the Ecobee schedule.
I had to create the second automation in a 3rd party app to do the logic, which Apple home supports but doesn’t allow you to directly create.
If anyone wants a SS of my automations, let me know.