Implement hysteresis for soft / hard states
Add ok history