blob: a141da5ed7e879ea4a5bb682f4c2995c31e1b97b [file] [log] [blame]
Brad Bishop45387d62016-11-10 21:58:58 -06001description: >
2 Implement to provide warning class sensor thresholds. Objects implementing
3 Sensor.Threshold.Warning must be instantiated in the correct hierarchy within
4 the sensors namespace. The following sensor hierarchies are recognized:
Patrick Williamsd5f36352021-12-22 09:13:27 -06005 airflow
Brad Bishop45387d62016-11-10 21:58:58 -06006 altitude
Brad Bishop6c4e2e92016-12-28 13:38:31 -05007 current
Brad Bishop6c4e2e92016-12-28 13:38:31 -05008 energy
Patrick Williamsd5f36352021-12-22 09:13:27 -06009 fan_tach
Patrick Williams1bcf7fa2021-12-22 09:14:37 -060010 humidity
Patrick Williamsd5f36352021-12-22 09:13:27 -060011 power
Patrick Williams86f8c532021-10-01 06:34:04 -050012 pressure
Patrick Williamsd5f36352021-12-22 09:13:27 -060013 temperature
14 utilization
15 voltage
Brad Bishop45387d62016-11-10 21:58:58 -060016
17 Additionally, any object implementing Sensor.Threshold.Warning must also
18 implement Sensor.Value.
19
20properties:
21 - name: WarningHigh
James Feist4ec65872018-07-31 11:00:25 -070022 type: double
Patrick Williams2c33a892020-11-04 12:14:13 -060023 default: NaN
Brad Bishop45387d62016-11-10 21:58:58 -060024 description: >
Patrick Williams2c33a892020-11-04 12:14:13 -060025 The upper bound of the warning threshold. A value of 'NaN' is used
26 to indicate there is no threshold of this type.
Brad Bishop45387d62016-11-10 21:58:58 -060027 - name: WarningLow
James Feist4ec65872018-07-31 11:00:25 -070028 type: double
Patrick Williams2c33a892020-11-04 12:14:13 -060029 default: NaN
Brad Bishop45387d62016-11-10 21:58:58 -060030 description: >
Patrick Williams2c33a892020-11-04 12:14:13 -060031 The lower bound of the warning threshold. A value of 'NaN' is used
32 to indicate there is no threshold of this type.
Brad Bishop6d514352017-01-05 21:33:17 -050033 - name: WarningAlarmHigh
Brad Bishop45387d62016-11-10 21:58:58 -060034 type: boolean
35 description: >
Brad Bishop6d514352017-01-05 21:33:17 -050036 True if the sensor value has exceeded the defined bound.
37 False if the sensor value has not exceeded the defined bound.
Brad Bishop45387d62016-11-10 21:58:58 -060038
Brad Bishop6d514352017-01-05 21:33:17 -050039 WarningAlarmHigh may be set to False to clear an alarm condition.
40 The behavior of setting WarningAlarmHigh to True is undefined.
41 - name: WarningAlarmLow
42 type: boolean
43 description: >
44 True if the sensor value has exceeded the defined bound.
45 False if the sensor value has not exceeded the defined bound.
46
47 WarningAlarmLow may be set to False to clear an alarm condition.
48 The behavior of setting WarningAlarmLow to True is undefined.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060049signals:
50 - name: WarningHighAlarmAsserted
51 description: >
52 The high threshold alarm asserted.
53 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050054 - name: SensorValue
55 type: double
56 description: >
57 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060058 - name: WarningHighAlarmDeasserted
59 description: >
60 The high threshold alarm deasserted.
61 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050062 - name: SensorValue
63 type: double
64 description: >
65 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060066 - name: WarningLowAlarmAsserted
67 description: >
68 The low threshold alarm asserted.
69 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050070 - name: SensorValue
71 type: double
72 description: >
73 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060074 - name: WarningLowAlarmDeasserted
75 description: >
76 The low threshold alarm deasserted.
77 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050078 - name: SensorValue
79 type: double
80 description: >
81 The sensor value that triggered the alarm change.