configurations: sbp1: Add Hysteresis

dbus-sensors uses a default threshold hysteresis of 2.55 V/A/°C,
which is too much for most sensors found on SBP1. In order to reset
the critical/warning threshold the sensor value has to go out of
the acceptable range in the opposite direction. Adjust the hysteresis
to 1% of the threshold value.

Tested: Warning/Critical thresholds reset earlier when the value is
        back to normal.

Change-Id: Ife33b456e930d2d8df61df9da8bcebb1a5f4d577
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/configurations/sbp1_psu.json b/configurations/sbp1_psu.json
index d038d8b..08eb066 100644
--- a/configurations/sbp1_psu.json
+++ b/configurations/sbp1_psu.json
@@ -20,6 +20,7 @@
                 "Thresholds": [
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 4.1,
                         "Label": "vin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -27,6 +28,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.7,
                         "Label": "vin2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -34,6 +36,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 3.95,
                         "Label": "vin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -41,6 +44,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.85,
                         "Label": "vin2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -48,6 +52,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.055,
                         "Label": "iin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -55,6 +60,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.05,
                         "Label": "iin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -62,6 +68,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 1.25,
                         "Label": "temp1",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -69,6 +76,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.68,
                         "Label": "iout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -76,6 +84,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.133,
                         "Label": "vout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -83,6 +92,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.11080000000000001,
                         "Label": "vout2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -90,6 +100,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.128,
                         "Label": "vout2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -97,6 +108,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.1168,
                         "Label": "vout2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -142,6 +154,7 @@
                 "Thresholds": [
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 4.1,
                         "Label": "vin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -149,6 +162,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.7,
                         "Label": "vin2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -156,6 +170,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 3.95,
                         "Label": "vin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -163,6 +178,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.85,
                         "Label": "vin2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -170,6 +186,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.055,
                         "Label": "iin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -177,6 +194,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.05,
                         "Label": "iin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -184,6 +202,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 1.25,
                         "Label": "temp1",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -191,6 +210,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.68,
                         "Label": "iout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -198,6 +218,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.133,
                         "Label": "vout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -205,6 +226,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.11080000000000001,
                         "Label": "vout2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -212,6 +234,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.128,
                         "Label": "vout2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -219,6 +242,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.1168,
                         "Label": "vout2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -264,6 +288,7 @@
                 "Thresholds": [
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 4.1,
                         "Label": "vin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -271,6 +296,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.7,
                         "Label": "vin2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -278,6 +304,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 3.95,
                         "Label": "vin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -285,6 +312,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.85,
                         "Label": "vin2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -292,6 +320,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.055,
                         "Label": "iin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -299,6 +328,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.05,
                         "Label": "iin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -306,6 +336,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 1.25,
                         "Label": "temp1",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -313,6 +344,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.68,
                         "Label": "iout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -320,6 +352,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.133,
                         "Label": "vout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -327,6 +360,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.11080000000000001,
                         "Label": "vout2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -334,6 +368,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.128,
                         "Label": "vout2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -341,6 +376,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.1168,
                         "Label": "vout2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -386,6 +422,7 @@
                 "Thresholds": [
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 4.1,
                         "Label": "vin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -393,6 +430,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.7,
                         "Label": "vin2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -400,6 +438,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 3.95,
                         "Label": "vin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -407,6 +446,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 3.85,
                         "Label": "vin2",
                         "Name": "lower non critical",
                         "Severity": 0,
@@ -414,6 +454,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.055,
                         "Label": "iin2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -421,6 +462,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.05,
                         "Label": "iin2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -428,6 +470,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 1.25,
                         "Label": "temp1",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -435,6 +478,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.68,
                         "Label": "iout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -442,6 +486,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.133,
                         "Label": "vout2",
                         "Name": "upper critical",
                         "Severity": 1,
@@ -449,6 +494,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.11080000000000001,
                         "Label": "vout2",
                         "Name": "lower critical",
                         "Severity": 1,
@@ -456,6 +502,7 @@
                     },
                     {
                         "Direction": "greater than",
+                        "Hysteresis": 0.128,
                         "Label": "vout2",
                         "Name": "upper non critical",
                         "Severity": 0,
@@ -463,6 +510,7 @@
                     },
                     {
                         "Direction": "less than",
+                        "Hysteresis": 0.1168,
                         "Label": "vout2",
                         "Name": "lower non critical",
                         "Severity": 0,