logging and email when alarm changes state