Wait for trigger automation

Binary sensor1 goes “on” to “off”

If binary sensor2 does not go from “off” to “on” in the next 30 seconds

Send notification