Want app to notify me when AC comes on and a door switch is open

So what I want to find/make/figure out how to do is send me a notification when the AC turns on and it sees that a window or door sensor is open. Basically I want to know if I forgot to close something when the AC kicks in.
Any suggestions? (Is it even possible?)

Nm… seriously could not find anything then 1min after posting found something…