blob: 6d7184be4e21104c1d502e9181139023a6b4a212 [file] [log] [blame]
Matt Spinler45ed88d2020-11-20 11:33:16 -06001description: >
2 Implement to provide soft shutdown class sensor thresholds. Objects
3 implementing Sensor.Threshold.Shutdown must be instantiated in the correct
4 hierarchy within the sensors namespace. The following sensor hierarchies
5 are recognized:
Patrick Williamsd5f36352021-12-22 09:13:27 -06006 airflow
Matt Spinler45ed88d2020-11-20 11:33:16 -06007 altitude
8 current
Matt Spinler45ed88d2020-11-20 11:33:16 -06009 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
Matt Spinler45ed88d2020-11-20 11:33:16 -060017
18 Additionally, any object implementing Sensor.Threshold.SoftShutdown must
19 also implement Sensor.Value.
20
21properties:
22 - name: SoftShutdownHigh
23 type: double
24 default: NaN
25 description: >
26 The upper bound of the soft shutdown threshold. A value of 'NaN' is
27 used to indicate there is no threshold of this type.
28 - name: SoftShutdownLow
29 type: double
30 default: NaN
31 description: >
32 The lower bound of the soft shutdown threshold. A value of 'NaN' is
33 used to indicate there is no threshold of this type.
34 - name: SoftShutdownAlarmHigh
35 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.
Matt Spinler45ed88d2020-11-20 11:33:16 -060039
40 SoftShutdownAlarmHigh may be set to False to clear an alarm condition.
41 The behavior of setting SoftShutdownAlarmHigh to True is undefined.
42 - name: SoftShutdownAlarmLow
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.
Matt Spinler45ed88d2020-11-20 11:33:16 -060047
48 SoftShutdownAlarmLow may be set to False to clear an alarm condition.
49 The behavior of setting SoftShutdownAlarmLow to True is undefined.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060050
51signals:
52 - name: SoftShutdownHighAlarmAsserted
53 description: >
54 The high threshold alarm asserted.
55 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050056 - name: SensorValue
57 type: double
58 description: >
59 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060060 - name: SoftShutdownHighAlarmDeasserted
61 description: >
62 The high threshold alarm deasserted.
63 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050064 - name: SensorValue
65 type: double
66 description: >
67 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060068 - name: SoftShutdownLowAlarmAsserted
69 description: >
70 The low threshold alarm asserted.
71 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050072 - name: SensorValue
73 type: double
74 description: >
75 The sensor value that triggered the alarm change.
Matt Spinler70ee1cf2021-01-21 15:25:59 -060076 - name: SoftShutdownLowAlarmDeasserted
77 description: >
78 The low threshold alarm deasserted.
79 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050080 - name: SensorValue
81 type: double
82 description: >
83 The sensor value that triggered the alarm change.