With Redfish I can get temperature and power consumption that I would like to collect in Domoticz but I have no idea how to build this.
Anybody can help me to get started?
The ones I want to capture are:
- Inlet Temperature
- Exhaust Temperature
- CPU Temperature
- Power Consumption
For instance https://192.168.2.202/redfish/v1/Chassi ... dInletTemp
Will give:
Code: Select all
{
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23SystemBoardInletTemp",
"@odata.type": "#Thermal.v1_4_0.Temperature",
"LowerThresholdCritical": -7,
"LowerThresholdFatal": -7,
"LowerThresholdNonCritical": 3,
"MaxReadingRangeTemp": 47,
"MemberId": "iDRAC.Embedded.1#SystemBoardInletTemp",
"MinReadingRangeTemp": -7,
"Name": "System Board Inlet Temp",
"PhysicalContext": "SystemBoard",
"ReadingCelsius": 20,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"SensorNumber": 4,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": 47,
"UpperThresholdFatal": 47,
"UpperThresholdNonCritical": 42
}
Code: Select all
{
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal",
"@odata.type": "#Thermal.v1_4_0.Thermal",
"Description": "Represents the properties for Temperature and Cooling",
"Fans": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan1 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.1",
"MinReadingRange": 360,
"Name": "System Board Fan1 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 5880,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan4 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.4",
"MinReadingRange": 360,
"Name": "System Board Fan4 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 5640,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan2 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.2",
"MinReadingRange": 360,
"Name": "System Board Fan2 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 5880,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan3 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.3",
"MinReadingRange": 360,
"Name": "System Board Fan3 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 5760,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan6 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.6",
"MinReadingRange": 360,
"Name": "System Board Fan6 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 6000,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
},
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5",
"@odata.type": "#Thermal.v1_4_0.Fan",
"Assembly": {
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Assembly"
},
"FanName": "System Board Fan5 RPM",
"LowerThresholdCritical": 360,
"LowerThresholdFatal": 360,
"LowerThresholdNonCritical": 600,
"MaxReadingRange": null,
"MemberId": "0x17||Fan.Embedded.5",
"MinReadingRange": 360,
"Name": "System Board Fan5 RPM",
"PhysicalContext": "SystemBoard",
"Reading": 5760,
"ReadingUnits": "RPM",
"Redundancy": [],
"[email protected]": 0,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": null,
"UpperThresholdFatal": null,
"UpperThresholdNonCritical": null
}
],
"[email protected]": 6,
"Id": "Thermal",
"Name": "Thermal",
"Redundancy": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Thermal/Redundancy/iDRAC.Embedded.1%23SystemBoardFanRedundancy",
"@odata.type": "#Redundancy.v1_3_0.Redundancy",
"MaxNumSupported": null,
"MemberId": "iDRAC.Embedded.1#SystemBoardFanRedundancy",
"MinNumNeeded": null,
"Mode": "N+m",
"Name": "System Board Fan Redundancy",
"RedundancyEnabled": true,
"RedundancySet": [],
"[email protected]": 0,
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
],
"[email protected]": 1,
"Temperatures": [
{
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23SystemBoardInletTemp",
"@odata.type": "#Thermal.v1_4_0.Temperature",
"LowerThresholdCritical": -7,
"LowerThresholdFatal": -7,
"LowerThresholdNonCritical": 3,
"MaxReadingRangeTemp": 47,
"MemberId": "iDRAC.Embedded.1#SystemBoardInletTemp",
"MinReadingRangeTemp": -7,
"Name": "System Board Inlet Temp",
"PhysicalContext": "SystemBoard",
"ReadingCelsius": 20,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"SensorNumber": 4,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": 47,
"UpperThresholdFatal": 47,
"UpperThresholdNonCritical": 42
},
{
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23SystemBoardExhaustTemp",
"@odata.type": "#Thermal.v1_4_0.Temperature",
"LowerThresholdCritical": 0,
"LowerThresholdFatal": 0,
"LowerThresholdNonCritical": 0,
"MaxReadingRangeTemp": 75,
"MemberId": "iDRAC.Embedded.1#SystemBoardExhaustTemp",
"MinReadingRangeTemp": 0,
"Name": "System Board Exhaust Temp",
"PhysicalContext": "SystemBoard",
"ReadingCelsius": 38,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
}
],
"[email protected]": 1,
"SensorNumber": 1,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": 75,
"UpperThresholdFatal": 75,
"UpperThresholdNonCritical": 70
},
{
"@odata.context": "/redfish/v1/$metadata#Thermal.Thermal",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Temperatures/iDRAC.Embedded.1%23CPU1Temp",
"@odata.type": "#Thermal.v1_4_0.Temperature",
"LowerThresholdCritical": 3,
"LowerThresholdFatal": 3,
"LowerThresholdNonCritical": 8,
"MaxReadingRangeTemp": 87,
"MemberId": "iDRAC.Embedded.1#CPU1Temp",
"MinReadingRangeTemp": 3,
"Name": "CPU1 Temp",
"PhysicalContext": "CPU",
"ReadingCelsius": 67,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors/CPU.Socket.1"
}
],
"[email protected]": 1,
"SensorNumber": 14,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UpperThresholdCritical": 87,
"UpperThresholdFatal": 87,
"UpperThresholdNonCritical": 82
}
],
"[email protected]": 3
}
Code: Select all
{
"@odata.context": "/redfish/v1/$metadata#Power.Power",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerControl",
"@odata.type": "#Power.v1_4_0.PowerControl",
"MemberId": "PowerControl",
"Name": "System Power Control",
"PowerAllocatedWatts": 896,
"PowerAvailableWatts": 0,
"PowerCapacityWatts": 896,
"PowerConsumedWatts": 220,
"PowerLimit": {
"CorrectionInMs": 0,
"LimitException": "HardPowerOff",
"LimitInWatts": 398
},
"PowerMetrics": {
"AverageConsumedWatts": 0,
"IntervalInMin": 1,
"MaxConsumedWatts": 0,
"MinConsumedWatts": 0
},
"PowerRequestedWatts": 398,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
},
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
}
],
"[email protected]": 2
}