alarm state detection working, default relais is on