HomeAssistant Plugin

Updated: 2026-10-19
Installation Guide

HA-EMS HomeAssistant Integration

HA-EMS is a local energy-management integration built for Home Assistant, designed for smart-home scenarios. The current version supports local mode only: EMS devices are discovered over mDNS on the same LAN and polled in real time over TCP for power and energy data. This guide walks you through everything — before-you-start, the package, six installation steps, troubleshooting, and uninstall.

  • ✓ Home Assistant and the EMS devices must be on the same local network (same subnet; nothing in between may block mDNS/UDP broadcast).
  • ✓ Supported device types: 85, 90, 99, 131, and 174. More types are being added.
  • ✓ Prepare a way to access the Home Assistant configuration directory /config — for example, the Samba share, the File Editor or Studio Code Server add-on, or an SSH terminal.
  • The integration files are loaded by Home Assistant.
  • If you did Step 2, the "HA EMS" dashboard appears in the sidebar. It has no data yet — that is normal; it fills in automatically after Step 4.
  • Open Home Assistant in a browser and sign in (usually http://homeassistant.local:8123; if the page is still open from Step 3, just continue).
  • Go to Settings → Devices & services → Add integration.
  • Search for HA EMS and submit.
  • The config flow creates the local-mode entry directly — no account or password needed.
SymptomWhat to do
HA EMS not listed when adding an integrationCheck /config/custom_components/ha_ems/manifest.json exists, then restart.
No devices discoveredConfirm HA and the devices share the same subnet and nothing blocks mDNS/UDP broadcast.
Device connected but no energy-flow diagramThe diagram needs an EnergyParameter response; check the entity's protocol_status, protocol_error, and the logs.
Page says the custom card is missingConfirm the JS file is in /config/www/ha_ems/, the resource type is JavaScript Module, then press Ctrl+F5.
Entities show "unavailable"Find the first Python exception in the HA logs, fix it, then restart the integration.
  • ✓ Delete the HA EMS config entry under Settings → Devices & services (this stops local scanning and TCP connections).
  • ✓ Delete /config/custom_components/ha_ems and /config/www/ha_ems.
  • ✓ Restart Home Assistant.