Fix to check switch alarm settings periodically