MCPcopy Index your code
hub / github.com/Breina/idrac_power_monitor

github.com/Breina/idrac_power_monitor @v1.7.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.7.0 ↗ · + Follow
69 symbols 253 edges 8 files 20 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

iDRAC power monitor

hacs_badge GitHub Actions Workflow Status GitHub Actions Workflow Status

This integration will grab infomations from your Dell servers' iDRAC system :

  • Server status
  • Power consumption
  • CPU and air temperature
  • Fan speed

You can also start and shutdown the server from Home Assistant.

For this to work, the Redfish service must be running on it.

Tested on iDRAC 7 and 8 on multiple Dell PowerEdge servers.

Screenshots

Alt text

Changelog

1.7.0

  • Add firmware version detection to disable legacy /data endpoint on iDRAC 9 firmware 7.x+ (fixes #41)
  • Prefer Redfish PowerMetrics.EnergyConsumedKWh for energy consumption over legacy endpoint
  • Fix error log spam on firmware that removed the /data/login endpoint
  • Fix potential NameError in legacy endpoint logout when login fails

1.6.1

  • Fix firmware version overwriting device info, causing platform setup failures on concurrent load
  • Fix power sensor showing "unavailable" instead of 0W when server is in standby
  • Fix binary status sensor showing "unavailable" instead of "off" when server is powered down
  • Add async_unload_entry to properly stop background polling and clean up on integration reload

Installation

Note

This integration requires HACS to be installed

  1. Open HACS
  2. + EXPLORE & DOWNLOAD REPOSITORIES
  3. Find iDRAC power monitor in this list
  4. DOWNLOAD THIS REPOSITORY WITH HACS
  5. DOWNLOAD
  6. Restart Home Assistant (Settings > System > RESTART)
  7. Go to Configuration -> Integrations and click the + Add Integration button
  8. Select iDRAC power monitor from the list
  9. Enter the IP address or hostname (NO http:// !) of your iDRAC instance, its username (root by default) and its password (calvin by default).

Core symbols most depended-on inside this repo

handle_error
called by 5
custom_components/idrac_power/idrac_rest.py
get_path
called by 5
custom_components/idrac_power/idrac_rest.py
register_callback_thermals
called by 2
custom_components/idrac_power/idrac_rest.py
register_callback_status
called by 2
custom_components/idrac_power/idrac_rest.py
validate_input
called by 1
custom_components/idrac_power/config_flow.py
configure_firmware
called by 1
custom_components/idrac_power/idrac_rest.py
register_callback_power_usage
called by 1
custom_components/idrac_power/idrac_rest.py
register_callback_energy_consumption
called by 1
custom_components/idrac_power/idrac_rest.py

Shape

Method 45
Class 15
Function 9

Languages

Python100%

Modules by API surface

custom_components/idrac_power/idrac_rest.py28 symbols
custom_components/idrac_power/sensor.py13 symbols
custom_components/idrac_power/button.py10 symbols
custom_components/idrac_power/switch.py6 symbols
custom_components/idrac_power/binary_sensor.py5 symbols
custom_components/idrac_power/__init__.py4 symbols
custom_components/idrac_power/config_flow.py3 symbols

For agents

$ claude mcp add idrac_power_monitor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page