blob: c5936537280850e6346a2f67f5a604652c8a51eb [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
11 power
Bruce Mitchell69d821b2021-06-02 19:17:06 -050012 pressure
Patrick Williamsd5f36352021-12-22 09:13:27 -060013 temperature
14 utilization
15 voltage
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.
Patrick Williamsd5f36352021-12-22 09:13:27 -060041 For objects in the airflow namespace, Unit must be "CFM"
Brad Bishop45387d62016-11-10 21:58:58 -060042 For objects in the altitude namespace, Unit must be "Meters".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050043 For objects in the current namespace, Unit must be "Amperes".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050044 For objects in the energy namespace, Unit must be "Joules".
Patrick Williamsd5f36352021-12-22 09:13:27 -060045 For objects in the fan_tach namespace, Unit must be "RPMS".
46 For objects in the power namespace, Unit must be "Watts".
Bruce Mitchell69d821b2021-06-02 19:17:06 -050047 For objects in the pressure namespace, Unit must be "Pascals"
Patrick Williamsd5f36352021-12-22 09:13:27 -060048 For objects in the temperature namespace, Unit must be "DegreesC".
49 For objects in the utilization namespace, Unit must be "Percent"
50 For objects in the voltage namespace, Unit must be "Volts".
Brad Bishop45387d62016-11-10 21:58:58 -060051
52enumerations:
53 - name: Unit
54 description: >
55 A sensor reading unit.
56 values:
Patrick Williamsd5f36352021-12-22 09:13:27 -060057 - name: Amperes
58 description: >
59 Electrical charge flow rate as Amperes.
60 - name: CFM
61 description: >
62 To calculate Air Flow in Cubic Feet per Minute
Brad Bishop45387d62016-11-10 21:58:58 -060063 - name: DegreesC
64 description: >
65 Temperature as degrees Celsius.
Patrick Williamsd5f36352021-12-22 09:13:27 -060066 - name: Joules
67 description: >
68 Energy transfer as Joules.
69 - name: Meters
70 description: >
71 Length as meters.
72 - name: Percent
73 description: >
74 Resource utilization as a percentage.
75 - name: Pascals
76 description: >
77 Pressure as pascals.
Brad Bishop45387d62016-11-10 21:58:58 -060078 - name: RPMS
79 description: >
80 Frequency of rotation as revolutions per minute.
81 - name: Volts
82 description: >
83 Electomotive force as volts.
Brad Bishop6c4e2e92016-12-28 13:38:31 -050084 - name: Watts
85 description: >
86 Rate of energy transfer as Watts.