blob: bf51eff90084b011469a268de8a2d90e1ed411c9 [file] [log] [blame]
Brad Bishop45387d62016-11-10 21:58:58 -06001description: >
2 Implement to provide sensor readings. Objects implementing
3 Sensor.Value must be instantiated in the correct
4 hierarchy within the sensors namespace. The following sensor
5 hierarchies are 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
Bruce Mitchell69d821b2021-06-02 19:17:06 -050013 pressure
Patrick Williamsd5f36352021-12-22 09:13:27 -060014 temperature
15 utilization
16 voltage
Brad Bishop45387d62016-11-10 21:58:58 -060017
18 Any service implementing Sensor.Value on one or more objects must
19 implement org.freedesktop.DBus.ObjectManager on the sensors namespace root.
20
21 All Sensor.Value properties are read-only.
22
23properties:
24 - name: Value
James Feist4ec65872018-07-31 11:00:25 -070025 type: double
Brad Bishop45387d62016-11-10 21:58:58 -060026 description: >
27 The sensor reading.
James Feist8a3b49d2018-01-22 16:11:43 -080028 - name: MaxValue
James Feist4ec65872018-07-31 11:00:25 -070029 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050030 default: infinity
James Feist8a3b49d2018-01-22 16:11:43 -080031 description: >
32 The Maximum supported sensor reading.
33 - name: MinValue
James Feist4ec65872018-07-31 11:00:25 -070034 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050035 default: -infinity
James Feist8a3b49d2018-01-22 16:11:43 -080036 description: >
37 The Minimum supported sensor reading.
Brad Bishop45387d62016-11-10 21:58:58 -060038 - name: Unit
39 type: enum[self.Unit]
40 description: >
Patrick Venture573f1822017-11-08 10:18:18 -080041 The unit of the reading. Immutable once set for a sensor.
Patrick Williamsd5f36352021-12-22 09:13:27 -060042 For objects in the airflow namespace, Unit must be "CFM"
Brad Bishop45387d62016-11-10 21:58:58 -060043 For objects in the altitude namespace, Unit must be "Meters".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050044 For objects in the current namespace, Unit must be "Amperes".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050045 For objects in the energy namespace, Unit must be "Joules".
Patrick Williamsd5f36352021-12-22 09:13:27 -060046 For objects in the fan_tach namespace, Unit must be "RPMS".
Patrick Williams1bcf7fa2021-12-22 09:14:37 -060047 For objects in the humidity namespace, Unit must be "PercentRH"
Patrick Williamsd5f36352021-12-22 09:13:27 -060048 For objects in the power namespace, Unit must be "Watts".
Bruce Mitchell69d821b2021-06-02 19:17:06 -050049 For objects in the pressure namespace, Unit must be "Pascals"
Patrick Williamsd5f36352021-12-22 09:13:27 -060050 For objects in the temperature namespace, Unit must be "DegreesC".
51 For objects in the utilization namespace, Unit must be "Percent"
52 For objects in the voltage namespace, Unit must be "Volts".
Brad Bishop45387d62016-11-10 21:58:58 -060053
54enumerations:
55 - name: Unit
56 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050057 A sensor reading unit.
Brad Bishop45387d62016-11-10 21:58:58 -060058 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050059 - name: Amperes
60 description: >
61 Electrical charge flow rate as Amperes.
62 - name: CFM
63 description: >
64 To calculate Air Flow in Cubic Feet per Minute
65 - name: DegreesC
66 description: >
67 Temperature as degrees Celsius.
68 - name: Joules
69 description: >
70 Energy transfer as Joules.
71 - name: Meters
72 description: >
73 Length as meters.
74 - name: Percent
75 description: >
76 Resource utilization as a percentage.
77 - name: PercentRH
78 description: >
79 Relative humidity as a percentage.
80 - name: Pascals
81 description: >
82 Pressure as pascals.
83 - name: RPMS
84 description: >
85 Frequency of rotation as revolutions per minute.
86 - name: Volts
87 description: >
88 Electomotive force as volts.
89 - name: Watts
90 description: >
91 Rate of energy transfer as Watts.