blob: 3c55da7c744f084d2953592608b7e67984950abe [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
Basheer Ahmed Muddebihal47c11aa2021-07-28 02:07:42 -070014 airflow
Bruce Mitchell69d821b2021-06-02 19:17:06 -050015 pressure
Brad Bishop45387d62016-11-10 21:58:58 -060016
17 Any service implementing Sensor.Value on one or more objects must
18 implement org.freedesktop.DBus.ObjectManager on the sensors namespace root.
19
20 All Sensor.Value properties are read-only.
21
22properties:
23 - name: Value
James Feist4ec65872018-07-31 11:00:25 -070024 type: double
Brad Bishop45387d62016-11-10 21:58:58 -060025 description: >
26 The sensor reading.
James Feist8a3b49d2018-01-22 16:11:43 -080027 - name: MaxValue
James Feist4ec65872018-07-31 11:00:25 -070028 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050029 default: infinity
James Feist8a3b49d2018-01-22 16:11:43 -080030 description: >
31 The Maximum supported sensor reading.
32 - name: MinValue
James Feist4ec65872018-07-31 11:00:25 -070033 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050034 default: -infinity
James Feist8a3b49d2018-01-22 16:11:43 -080035 description: >
36 The Minimum supported sensor reading.
Brad Bishop45387d62016-11-10 21:58:58 -060037 - name: Unit
38 type: enum[self.Unit]
39 description: >
Patrick Venture573f1822017-11-08 10:18:18 -080040 The unit of the reading. Immutable once set for a sensor.
Brad Bishop45387d62016-11-10 21:58:58 -060041 For objects in the temperature namespace, Unit must be "DegreesC".
42 For objects in the fan_tach namespace, Unit must be "RPMS".
43 For objects in the voltage namespace, Unit must be "Volts".
44 For objects in the altitude namespace, Unit must be "Meters".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050045 For objects in the current namespace, Unit must be "Amperes".
46 For objects in the power namespace, Unit must be "Watts".
47 For objects in the energy namespace, Unit must be "Joules".
Adrian Ambrożewiczff697932020-05-11 11:46:50 +020048 For objects in the utilization namespace, Unit must be "Percent"
Igor Kononenkof9d1af62020-09-17 13:37:52 +030049 For objects in the airflow namespace, Unit must be "CFM"
Bruce Mitchell69d821b2021-06-02 19:17:06 -050050 For objects in the pressure namespace, Unit must be "Pascals"
Brad Bishop45387d62016-11-10 21:58:58 -060051
52enumerations:
53 - name: Unit
54 description: >
55 A sensor reading unit.
56 values:
57 - name: DegreesC
58 description: >
59 Temperature as degrees Celsius.
60 - name: RPMS
61 description: >
62 Frequency of rotation as revolutions per minute.
63 - name: Volts
64 description: >
65 Electomotive force as volts.
66 - name: Meters
67 description: >
68 Length as meters.
Brad Bishop6c4e2e92016-12-28 13:38:31 -050069 - name: Amperes
70 description: >
71 Electrical charge flow rate as Amperes.
72 - name: Watts
73 description: >
74 Rate of energy transfer as Watts.
75 - name: Joules
76 description: >
77 Energy transfer as Joules.
Adrian Ambrożewiczff697932020-05-11 11:46:50 +020078 - name: Percent
79 description: >
80 Resource utilization as percentage.
Igor Kononenkof9d1af62020-09-17 13:37:52 +030081 - name: CFM
82 description: >
83 To calculate Air Flow in Cubic Feet per Minute
Bruce Mitchell69d821b2021-06-02 19:17:06 -050084 - name: Pascals
85 description: >
86 Pressure as pascal.