i use contact sensors on doors & windows, and the “leave” & “sleep” modes start this Homeyscript, which sends an alert on the actually opened doors & windows:
.
I also made a “master” indicator, (on when any door/window is open, plus the number of opened doors/windows).