This custom component allows Home Assistant to read live power (Watt) and energy (kWh) data from a Niko Home Control (NHC) I system using a TCP socket connection.
It provides:
- Real-time power readings (W) - sensor
- Automatically calculated energy usage (kWh) - sensor
- Integration into the Home Assistant Energy dashboard
- Lightweight and fully local (no cloud needed)
- Configuration screen for IP and Port of NHC I controller and configuration for channels
- Copy the "niko_energy" folder from this repository to:
/config/custom_components/niko_energy/ - Restart Home Assistant.
- Go to Settings > Devices & Services > Integrations, click Add Integration, and search for
Niko Homecontrol I Energy Monitor.
This integration requires:
- IP address of your Niko controller (on the local network)
- TCP port (usually
8080) - List of channel IDs and names you want to track (auto discovered)
Once added, the integration will:
- Start a live TCP stream
- Request live power data (getlive)
- Calculate cumulative kWh from the stream over time
| Entity Type | Unit | State Class | Updates |
|---|---|---|---|
| Power Sensor | W |
Measurement | Push |
| Energy Sensor | kWh |
Total Increasing | Derived from power |
You can safely add the energy sensors to the Energy Dashboard.
