blob: de128f05478772f230fed1a33c922f477e8a6bd9 [file] [log] [blame]
Brad Bishop45387d62016-11-10 21:58:58 -06001description: >
2 Implement to provide warning class sensor thresholds. Objects implementing
Patrick Williamsa1347412022-12-06 10:56:22 -06003 Sensor.Threshold.Warning must be instantiated in the correct hierarchy
4 within the sensors namespace. The following sensor hierarchies are
5 recognized:
Patrick Williamsd5f36352021-12-22 09:13:27 -06006 airflow
Brad Bishop45387d62016-11-10 21:58:58 -06007 altitude
Brad Bishop6c4e2e92016-12-28 13:38:31 -05008 current
Brad Bishop6c4e2e92016-12-28 13:38:31 -05009 energy
Patrick Williamsd5f36352021-12-22 09:13:27 -060010 fan_tach
Patrick Williams1bcf7fa2021-12-22 09:14:37 -060011 humidity
Patrick Williamsd5f36352021-12-22 09:13:27 -060012 power
Patrick Williams86f8c532021-10-01 06:34:04 -050013 pressure
Patrick Williamsd5f36352021-12-22 09:13:27 -060014 temperature
15 utilization
16 voltage
Brad Bishop45387d62016-11-10 21:58:58 -060017
18 Additionally, any object implementing Sensor.Threshold.Warning must also
19 implement Sensor.Value.
20
21properties:
22 - name: WarningHigh
James Feist4ec65872018-07-31 11:00:25 -070023 type: double
Patrick Williams2c33a892020-11-04 12:14:13 -060024 default: NaN
Brad Bishop45387d62016-11-10 21:58:58 -060025 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060026 The upper bound of the warning threshold. A value of 'NaN' is used to
27 indicate there is no threshold of this type.
Brad Bishop45387d62016-11-10 21:58:58 -060028 - name: WarningLow
James Feist4ec65872018-07-31 11:00:25 -070029 type: double
Patrick Williams2c33a892020-11-04 12:14:13 -060030 default: NaN
Brad Bishop45387d62016-11-10 21:58:58 -060031 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060032 The lower bound of the warning threshold. A value of 'NaN' is used to
33 indicate there is no threshold of this type.
Brad Bishop6d514352017-01-05 21:33:17 -050034 - name: WarningAlarmHigh
Brad Bishop45387d62016-11-10 21:58:58 -060035 type: boolean
36 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060037 True if the sensor value has exceeded the defined bound. False if the
38 sensor value has not exceeded the defined bound.
Brad Bishop45387d62016-11-10 21:58:58 -060039
Patrick Williamsa1347412022-12-06 10:56:22 -060040 WarningAlarmHigh may be set to False to clear an alarm condition. The
41 behavior of setting WarningAlarmHigh to True is undefined.
Brad Bishop6d514352017-01-05 21:33:17 -050042 - name: WarningAlarmLow
43 type: boolean
44 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060045 True if the sensor value has exceeded the defined bound. False if the
46 sensor value has not exceeded the defined bound.
Brad Bishop6d514352017-01-05 21:33:17 -050047
Patrick Williamsa1347412022-12-06 10:56:22 -060048 WarningAlarmLow may be set to False to clear an alarm condition. The
49 behavior of setting WarningAlarmLow to True is undefined.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060050signals:
51 - name: WarningHighAlarmAsserted
52 description: >
53 The high threshold alarm asserted.
54 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050055 - name: SensorValue
56 type: double
57 description: >
58 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060059 - name: WarningHighAlarmDeasserted
60 description: >
61 The high threshold alarm deasserted.
62 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050063 - name: SensorValue
64 type: double
65 description: >
66 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060067 - name: WarningLowAlarmAsserted
68 description: >
69 The low threshold alarm asserted.
70 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050071 - name: SensorValue
72 type: double
73 description: >
74 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060075 - name: WarningLowAlarmDeasserted
76 description: >
77 The low threshold alarm deasserted.
78 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050079 - name: SensorValue
80 type: double
81 description: >
82 The sensor value that triggered the alarm change.