Give me a tip: paypal.me/StefanSeeger buymeacoffee.com/stefsee
Custom integration for Ecotracker energy monitoring device. It directly accessed the local HTTP server. Depending on the official API Specification
- Make sure your ecotracker and Home Assistant are in the same LAN/WIFI
- Make sure your ecotracker has enabled "Local http server" of your Ecotacker device

- Make sure your ecotracker is reachable in the local network via (http://your.local.ip.address/v1/json).
- Make sure your calling http://your.local.ip.address/v1/json in the browser returns at least data like below. If one of the fields is missing, configuration will fail.
{
"power": 123, //mandatory
"powerAvg": 456, //mandatory
"energyCounterIn": 789 //mandatory
}- Add this repository as a custom repository in HACS:
- Go to HACS > Integrations
- Click the three dots in the top right
- Select "Custom repositories"
- Add the repository URL and select "Integration" as the category
- Click "Install"
- Restart Home Assistant
- Copy the
custom_components/ecotrackerfolder to your Home Assistant'scustom_componentsdirectory - Restart Home Assistant
- Go to Settings > Devices & Services
- Click "+ Add Integration"
- Search for "Ecotracker"
- Enter your device's IP address
- Set the polling interval (default: 60 seconds, range: 1-86400 seconds)
To change the polling interval after setup:
- Go to Settings > Devices & Services
- Find your Ecotracker device
- Click "Configure"
- Update the polling interval and IP address as needed
- Configurable polling interval (1-86400 seconds, default: 60 seconds)
- Compatible with Home Assistant Energy Dashboard
- Config flow UI for easy setup
- Options flow for changing settings without re-adding the integration
sensor.ecotracker_power- Current power consumption in Wattssensor.ecotracker_power_average- Average power consumption (last minute)sensor.ecotracker_energy_in- Total energy imported in Watt-hourssensor.ecotracker_energy_in_t1- Energy imported (1.8.1) in Watt-hourssensor.ecotracker_energy_in_t2- Energy imported (1.8.2) in Watt-hourssensor.ecotracker_energy_out- Total energy exported in Watt-hours (optional)sensor.ecotracker_power_phase_1- Power consumption of phase 1 in Watts (optional)sensor.ecotracker_power_phase_2- Power consumption of phase 2 in Watts (optional)sensor.ecotracker_power_phase_3- Power consumption of phase 3 in Watts (optional)sensor.ecotracker_age_power- Milliseconds since last measurement (optional)
This software is not affiliated with, endorsed by, or associated with EcoTracker or everHome in any way. All product and brand names mentioned belong to their respective owners. It is provided as-is, without any warranties or guarantees. The authors assume no liability for any issues arising from its use.