I dont know if this is of use to anyone else but "i" (read: AI) have made a card mod for lovelace that shows the power usage of a switch / device on the more info card like below:
The Hacs repo is here:
Hacs readme below:
Power More Info
Show live power usage in Home Assistant more-info dialogs. Power More Info is a frontend-only Lovelace dashboard resource for HACS. It adds a compact, clickable wattage badge below supported controls when the opened entity has a matching power sensor.
It is built for smart plugs, switch entities, lights, fans, appliance plugs, Zigbee/Z-Wave plugs, Tuya plugs, Shelly devices, energy monitoring sensors, and Home Assistant dashboards where you want instant watt values without editing every card.
Search keywords
- Home Assistant power badge
- HACS power monitoring
- Lovelace power usage
- more-info wattage
- smart plug watts
- switch power consumption
- light power monitoring
- fan power monitoring
- Home Assistant energy monitor
- dashboard resource
- frontend plugin
- custom Lovelace plugin
- HACS dashboard plugin
Features
- Adds a live
Wbadge to Home Assistant more-info dialogs. - Works with switches, lights, fans, and other controllable entities that have a related power sensor.
- Keeps sensors, helpers, scripts, scenes, buttons, diagnostic entities, and unrelated entities out of scope.
- Shows a compact card-style badge with a green flash icon and current watts.
- Opens the matched power sensor history graph when the badge is clicked.
- Preserves the original more-info control spacing and avoids slider overlap.
- Supports Dutch and English labels automatically.
- Requires no dashboard YAML changes and no per-card configuration.
Installation
HACS
Add this repository to HACS with My Home Assistant:
Or install manually:
- Open HACS in Home Assistant.
- Open the menu and choose
Custom repositories. - Add this repository URL:
https://github.com/matrover/lovelace-switch-power-more-info
- Select category
Dashboard. - Install
Power More Info. - Refresh the browser, clear frontend cache, or restart the Home Assistant companion app.
HACS should register this dashboard resource:
/hacsfiles/lovelace-switch-power-more-info/switch-power-more-info.js
Manual resource check
If the badge does not appear after installation, open Dashboard resources with the button above and verify that the resource exists as a JavaScript module.
How It Works
When you open a Home Assistant more-info dialog, the plugin checks the opened entity and tries to find a matching power sensor. If it finds one, it renders a small badge at the bottom of the dialog with the current power usage.
Clicking the badge opens the matched power sensor's more-info dialog, so you can immediately view the history graph.
Power Sensor Matching
Preferred exact sensor IDs:
sensor.<entity_id_without_domain>_electric_consumption_w
sensor.<entity_id_without_domain>_power
sensor.<entity_id_without_domain>_active_power
sensor.<entity_id_without_domain>_instantaneous_power
sensor.<entity_id_without_domain>_power_2
The plugin also accepts sensors with:
device_class: power- unit
W - unit
kW
Fallback matching is intentionally strict. It can match by entity prefix, useful device codes such as NC24, or a meaningful friendly-name prefix. It avoids broad substring matches, so names like room no longer accidentally match unrelated sensors like stroomverbruik.
Supported Use Cases
- Smart plug more-info dialogs with live wattage.
- Zigbee, Z-Wave, Shelly, Tuya, ESPHome, and MQTT power plugs.
- Lights or fans with separate power sensors.
- Appliance monitoring for washing machines, dryers, ovens, fridges, pumps, chargers, and media equipment.
- Home Assistant dashboards where existing cards already open more-info dialogs.
Limitations
- This is a frontend-only plugin. It does not create sensors, helpers, automations, or integrations.
- The badge only appears when a matching power sensor already exists.
- HACS and Home Assistant may require a browser refresh before updated frontend resources are loaded.
Troubleshooting
- No badge visible: check that a matching sensor exists and has
device_class: power,W, orkW. - Wrong sensor matched: rename the sensor or entity so they share a useful device code or exact prefix.
- Old layout still visible: clear the frontend cache or restart the Home Assistant app.
- Badge visible but not clickable: update to the latest release and hard refresh the browser.
HACS Metadata
Power More Info is a HACS dashboard plugin / Lovelace frontend resource for Home Assistant.
Useful discovery terms include: home-assistant, hacs, hacs-dashboard, hacs-plugin, lovelace, frontend, power-monitoring, energy-monitoring, smart-plug, wattage, more-info, power-sensor.
The project icon is included in the rendered README and HACS detail view. HACS dashboard repositories use the standard dashboard icon in the repository list.




