Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

No "Unit" in the Sensor items on the dbus #6

Open
wvervoorn opened this issue Mar 28, 2019 · 4 comments
Open

No "Unit" in the Sensor items on the dbus #6

wvervoorn opened this issue Mar 28, 2019 · 4 comments

Comments

@wvervoorn
Copy link

Hello,

Normally the dbus item for a sensor contains a "Unit" for the value.

When I list this on the wolfpass openbmc this isn't present.

What I mean by "Unit" is a line line this: "Unit": "xyz.openbmc_project.Sensor.Value.Unit.RPMS"

Below is an exapmle of what I get.

Is this expected in this version? How can this be corrected? Should something specific be added to the baseboard.json?

In my case the WebUI doesn't show any sensor data. As far as I can see this is because of this issue. How can this be solved or is this something that is know already and will be solved in a next release?

Best regards,

Wim Vervoorn

"/xyz/openbmc_project/sensors/temperature/CPU1_P12V_PVCCIN_VR_Temp": {
  "CriticalAlarmHigh": false,
  "CriticalAlarmLow": false,
  "CriticalHigh": 115.0,
  "CriticalLow": 0.0,
  "MaxValue": 255.0,
  "MinValue": 0.0,
  "Value": 0.0,
  "WarningAlarmHigh": false,
  "WarningAlarmLow": false,
  "WarningHigh": 110.0,
  "WarningLow": 5.0,
  "associations": [
    [
      "inventory",
      "sensors",
      "/xyz/openbmc_project/inventory/system/board/WFP_Baseboard/CPU1_P12V_PVCCIN_VR_Temp"
    ]
  ] 
@feistjj
Copy link
Contributor

feistjj commented Mar 28, 2019

dbus-sensors does not provide "unit" because generally the unit can easily be looked up from the dbus-path so it seemed redundant i.e. /xyz/openbmc_project/sensors/temperature is degrees C, /xyz/openbmc_project/sensors/voltage is Volts, etc.

@wvervoorn
Copy link
Author

wvervoorn commented Mar 28, 2019 via email

@edtanous
Copy link
Contributor

We've just recently enabled the webui in our builds, and are working through some of the issues there. This is one of the ones that is an issue.
Please see the patch below, which should move the interfaces to redfish, and away from the dbus API, which is the long term goal.
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-webui/+/17745

@wvervoorn
Copy link
Author

wvervoorn commented Mar 29, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants