Created alarm system to trigger power events