homeassistant-mojelektro
homeassistant-mojelektro copied to clipboard
Moj elektro component for Home Asistant
Home Assistant Integration of Moj Elektro electricity meter
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
Warning for existing users
This update should not erase existing sensors, ~~but will not update the energy produced _output
entities.~~ Fixed!
[!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.
Setup API
- 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
Installation
Method 2: Manually copy mojelektro
folder from latest release to custom_components
folder.
Restart Home Assistant
Configuration
In Home Assistant
- Go to Settings > Add intergration > search > Moj Elektro
- Enter credentials:
[!NOTE] As for version 0.2.0 there is no need for
configuration.yaml
file edit!
Roadmap
- [X] Add energy output sensors
- [X] Add config flow (Home Assistant UI setup)
- [X] Add decimals options for meters
- [X] Add tariff block power
- [ ] Add option to save to long term statistics
- [X] Multi-language Support
- [X] English
- [ ] Slovenian
Report any issues
Thanks and consider giving me a 🌟 star