blob: 61db8ecc382d807211993164a62c2f614172f1b4 [file] [log] [blame]
Brad Bishop45387d62016-11-10 21:58:58 -06001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 Implement to provide sensor readings. Objects implementing Sensor.Value
3 must be instantiated in the correct hierarchy within the sensors
4 namespace. The following sensor hierarchies are recognized:
Patrick Williamsd5f36352021-12-22 09:13:27 -06005 airflow
Brad Bishop45387d62016-11-10 21:58:58 -06006 altitude
Brad Bishop6c4e2e92016-12-28 13:38:31 -05007 current
Brad Bishop6c4e2e92016-12-28 13:38:31 -05008 energy
Patrick Williamsd5f36352021-12-22 09:13:27 -06009 fan_tach
Patrick Williams1bcf7fa2021-12-22 09:14:37 -060010 humidity
Patrick Williamsd5f36352021-12-22 09:13:27 -060011 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
Patrick Williamsa1347412022-12-06 10:56:22 -060017 Any service implementing Sensor.Value on one or more objects must implement
18 org.freedesktop.DBus.ObjectManager on /xyz/openbmc_project/sensors.
Brad Bishop45387d62016-11-10 21:58:58 -060019
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 Williamsa1347412022-12-06 10:56:22 -060040 The unit of the reading. Immutable once set for a sensor. For objects
41 in the airflow namespace, Unit must be "CFM" For objects in the
42 altitude namespace, Unit must be "Meters". For objects in the current
43 namespace, Unit must be "Amperes". For objects in the energy
44 namespace, Unit must be "Joules". For objects in the fan_tach
45 namespace, Unit must be "RPMS". For objects in the humidity namespace,
46 Unit must be "PercentRH" For objects in the power namespace, Unit must
47 be "Watts". For objects in the pressure namespace, Unit must be
48 "Pascals" For objects in the temperature namespace, Unit must be
49 "DegreesC". For objects in the utilization namespace, Unit must be
50 "Percent" For objects in the voltage namespace, Unit must be "Volts".
Brad Bishop45387d62016-11-10 21:58:58 -060051
52enumerations:
53 - name: Unit
54 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050055 A sensor reading unit.
Brad Bishop45387d62016-11-10 21:58:58 -060056 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050057 - 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
63 - name: DegreesC
64 description: >
65 Temperature as degrees Celsius.
66 - 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: PercentRH
76 description: >
77 Relative humidity as a percentage.
78 - name: Pascals
79 description: >
80 Pressure as pascals.
81 - name: RPMS
82 description: >
83 Frequency of rotation as revolutions per minute.
84 - name: Volts
85 description: >
86 Electomotive force as volts.
87 - name: Watts
88 description: >
89 Rate of energy transfer as Watts.
Shounak Mitrad4fad162022-08-08 21:53:41 +000090
91associations:
92 - name: inventory
93 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060094 Sensors may implement an 'inventory' to 'sensors' association with the
95 inventory item related to it.
Shounak Mitrad4fad162022-08-08 21:53:41 +000096 reverse_names:
97 - sensors
98 required_endpoint_interfaces:
Sui Chenfc5546e2022-10-25 15:52:03 -070099 - xyz.openbmc_project.Inventory.Item
100 - name: monitoring
101 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -0600102 Sensors may monitor the BMC's resource utilization and implement an
Patrick Williamsc29c9272023-08-17 09:56:38 -0500103 association to the Bmc item.
Sui Chenfc5546e2022-10-25 15:52:03 -0700104 reverse_names:
105 - monitored_by
106 required_endpoint_interfaces:
107 - xyz.openbmc_project.Inventory.Item.Bmc
Patrick Williams1bb69612024-01-20 10:20:07 -0600108
109paths:
110 - namespace: /xyz/openbmc_project/sensors
111 segments:
112 - name: Airflow
113 value: airflow
114 - name: Altitude
115 value: altitude
116 - name: Current
117 value: current
118 - name: Energy
119 value: energy
120 - name: FanTach
121 value: fan_tach
122 - name: Humidity
123 value: humidity
124 - name: Power
125 value: power
126 - name: Pressure
127 value: pressure
128 - name: Temperature
129 value: temperature
130 - name: Utilization
131 value: utilization
132 - name: Voltage
133 value: voltage