event_inherited() if (state != 100) { state = 100 statetime = 0 alarm[0] = 1 }