blob: e825c9af3306b7d3829541f79d8a9aaaf4788355 [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:
6 temperature
7 fan_tach
8 voltage
9 altitude
Brad Bishop6c4e2e92016-12-28 13:38:31 -050010 current
11 power
12 energy
Adrian Ambrożewiczff697932020-05-11 11:46:50 +020013 utilization
Bruce Mitchell69d821b2021-06-02 19:17:06 -050014 pressure
Brad Bishop45387d62016-11-10 21:58:58 -060015
16 Any service implementing Sensor.Value on one or more objects must
17 implement org.freedesktop.DBus.ObjectManager on the sensors namespace root.
18
19 All Sensor.Value properties are read-only.
20
21properties:
22 - name: Value
James Feist4ec65872018-07-31 11:00:25 -070023 type: double
Brad Bishop45387d62016-11-10 21:58:58 -060024 description: >
25 The sensor reading.
James Feist8a3b49d2018-01-22 16:11:43 -080026 - name: MaxValue
James Feist4ec65872018-07-31 11:00:25 -070027 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050028 default: infinity
James Feist8a3b49d2018-01-22 16:11:43 -080029 description: >
30 The Maximum supported sensor reading.
31 - name: MinValue
James Feist4ec65872018-07-31 11:00:25 -070032 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050033 default: -infinity
James Feist8a3b49d2018-01-22 16:11:43 -080034 description: >
35 The Minimum supported sensor reading.
Brad Bishop45387d62016-11-10 21:58:58 -060036 - name: Unit
37 type: enum[self.Unit]
38 description: >
Patrick Venture573f1822017-11-08 10:18:18 -080039 The unit of the reading. Immutable once set for a sensor.
Brad Bishop45387d62016-11-10 21:58:58 -060040 For objects in the temperature namespace, Unit must be "DegreesC".
41 For objects in the fan_tach namespace, Unit must be "RPMS".
42 For objects in the voltage namespace, Unit must be "Volts".
43 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".
45 For objects in the power namespace, Unit must be "Watts".
46 For objects in the energy namespace, Unit must be "Joules".
Adrian Ambrożewiczff697932020-05-11 11:46:50 +020047 For objects in the utilization namespace, Unit must be "Percent"
Igor Kononenkof9d1af62020-09-17 13:37:52 +030048 For objects in the airflow namespace, Unit must be "CFM"
Bruce Mitchell69d821b2021-06-02 19:17:06 -050049 For objects in the pressure namespace, Unit must be "Pascals"
Brad Bishop45387d62016-11-10 21:58:58 -060050
51enumerations:
52 - name: Unit
53 description: >
54 A sensor reading unit.
55 values:
56 - name: DegreesC
57 description: >
58 Temperature as degrees Celsius.
59 - name: RPMS
60 description: >
61 Frequency of rotation as revolutions per minute.
62 - name: Volts
63 description: >
64 Electomotive force as volts.
65 - name: Meters
66 description: >
67 Length as meters.
Brad Bishop6c4e2e92016-12-28 13:38:31 -050068 - name: Amperes
69 description: >
70 Electrical charge flow rate as Amperes.
71 - name: Watts
72 description: >
73 Rate of energy transfer as Watts.
74 - name: Joules
75 description: >
76 Energy transfer as Joules.
Adrian Ambrożewiczff697932020-05-11 11:46:50 +020077 - name: Percent
78 description: >
79 Resource utilization as percentage.
Igor Kononenkof9d1af62020-09-17 13:37:52 +030080 - name: CFM
81 description: >
82 To calculate Air Flow in Cubic Feet per Minute
Bruce Mitchell69d821b2021-06-02 19:17:06 -050083 - name: Pascals
84 description: >
85 Pressure as pascal.