This is an updated version of the custom component for integrating electric utility meter data into Home Assistant. It no longer requires a local certificate to access Moj Elektro but utilizes a new API service provided by Informatika.si.
*Example of Moj Elektro API using Apex Chart Card. You can find yaml in https://github.com/frlequ/mojelektro-apex-chart
Note
Note about data: This integration gathers energy information with a 24-hour delay because API doesn't provide real-time data. Unfortunately, this delay leads to inaccurate readings, especially between midnight and 6 a.m as data aggregates. The problem lies with Moj Elektro, and there's no way around it.
- Log in to Mojelektro.si using any available login options.
- Under
Moj Profil
, find the option to create a tokenKreiraj žeton
. Use unlimited expiration and clickCreate Token.
- Copy the newly generated token. You'll need it in the configuration step.
- Your
meter_id
isEIMM
number found undMerilna mesta/merilne točke
Method 2: Manually copy mojelektro
folder from latest release to custom_components
folder.
Restart Home Assistant
In Home Assistant
- Go to Settings > Add integration > search > Moj Elektro
- Enter credentials:
Note
As for version 0.2.0 there is no need for configuration.yaml
file edit!
If you are also searching for current tariff blocks (omrežnina), you can find integration here:
https://github.com/frlequ/home-assistant-network-tariff
and the custom card:
https://github.com/frlequ/network-tariff-card
- Add energy output sensors
- Add config flow (Home Assistant UI setup)
- Add decimals options for meters
- Add tariff block power
- Add energy consumption by blocks
- Add option to save to long term statistics
- Multi-language Support
- English
- Slovenian
Thanks and consider giving me a 🌟 star