Add a 5 seconds hysteresis on alarm triggering

This should stop alarms being shown for values which change relatively
quickly