blob: 77cef58c1dfbcffdeb425fcde3631f9c3c8e386d [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
Ed Tanousfd26ad12022-07-12 15:20:26 -070019 implement org.freedesktop.DBus.ObjectManager on
20 /xyz/openbmc_project/sensors.
Brad Bishop45387d62016-11-10 21:58:58 -060021
22 All Sensor.Value properties are read-only.
23
24properties:
25 - name: Value
James Feist4ec65872018-07-31 11:00:25 -070026 type: double
Brad Bishop45387d62016-11-10 21:58:58 -060027 description: >
28 The sensor reading.
James Feist8a3b49d2018-01-22 16:11:43 -080029 - name: MaxValue
James Feist4ec65872018-07-31 11:00:25 -070030 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050031 default: infinity
James Feist8a3b49d2018-01-22 16:11:43 -080032 description: >
33 The Maximum supported sensor reading.
34 - name: MinValue
James Feist4ec65872018-07-31 11:00:25 -070035 type: double
Patrick Williams5d0b7672021-04-09 08:21:17 -050036 default: -infinity
James Feist8a3b49d2018-01-22 16:11:43 -080037 description: >
38 The Minimum supported sensor reading.
Brad Bishop45387d62016-11-10 21:58:58 -060039 - name: Unit
40 type: enum[self.Unit]
41 description: >
Patrick Venture573f1822017-11-08 10:18:18 -080042 The unit of the reading. Immutable once set for a sensor.
Patrick Williamsd5f36352021-12-22 09:13:27 -060043 For objects in the airflow namespace, Unit must be "CFM"
Brad Bishop45387d62016-11-10 21:58:58 -060044 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".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050046 For objects in the energy namespace, Unit must be "Joules".
Patrick Williamsd5f36352021-12-22 09:13:27 -060047 For objects in the fan_tach namespace, Unit must be "RPMS".
Patrick Williams1bcf7fa2021-12-22 09:14:37 -060048 For objects in the humidity namespace, Unit must be "PercentRH"
Patrick Williamsd5f36352021-12-22 09:13:27 -060049 For objects in the power namespace, Unit must be "Watts".
Bruce Mitchell69d821b2021-06-02 19:17:06 -050050 For objects in the pressure namespace, Unit must be "Pascals"
Patrick Williamsd5f36352021-12-22 09:13:27 -060051 For objects in the temperature namespace, Unit must be "DegreesC".
52 For objects in the utilization namespace, Unit must be "Percent"
53 For objects in the voltage namespace, Unit must be "Volts".
Brad Bishop45387d62016-11-10 21:58:58 -060054
55enumerations:
56 - name: Unit
57 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050058 A sensor reading unit.
Brad Bishop45387d62016-11-10 21:58:58 -060059 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050060 - name: Amperes
61 description: >
62 Electrical charge flow rate as Amperes.
63 - name: CFM
64 description: >
65 To calculate Air Flow in Cubic Feet per Minute
66 - name: DegreesC
67 description: >
68 Temperature as degrees Celsius.
69 - name: Joules
70 description: >
71 Energy transfer as Joules.
72 - name: Meters
73 description: >
74 Length as meters.
75 - name: Percent
76 description: >
77 Resource utilization as a percentage.
78 - name: PercentRH
79 description: >
80 Relative humidity as a percentage.
81 - name: Pascals
82 description: >
83 Pressure as pascals.
84 - name: RPMS
85 description: >
86 Frequency of rotation as revolutions per minute.
87 - name: Volts
88 description: >
89 Electomotive force as volts.
90 - name: Watts
91 description: >
92 Rate of energy transfer as Watts.
Shounak Mitrad4fad162022-08-08 21:53:41 +000093
94associations:
95 - name: inventory
96 description: >
97 Sensors may implement an 'inventory' to 'sensors' association with
98 the inventory item related to it.
99 reverse_names:
100 - sensors
101 required_endpoint_interfaces:
102 - xyz.openbmc_project.Inventory.Item