https://github.com/frlequ/homeassistant-mojelektro
Moj elektro component for Home Asistant
https://github.com/frlequ/homeassistant-mojelektro
custom-component elektro energy home-assistant homeassistant moj mojelektro python
Last synced: 24 days ago
JSON representation
Moj elektro component for Home Asistant
- Host: GitHub
- URL: https://github.com/frlequ/homeassistant-mojelektro
- Owner: frlequ
- License: mit
- Created: 2024-01-28T14:26:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T20:01:50.000Z (6 months ago)
- Last Synced: 2025-03-30T00:10:06.511Z (about 1 month ago)
- Topics: custom-component, elektro, energy, home-assistant, homeassistant, moj, mojelektro, python
- Language: Python
- Homepage: https://frlequ.github.io
- Size: 2.37 MB
- Stars: 103
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/frlequ/homeassistant-mojelektro/)
[](https://github.com/frlequ/homeassistant-mojelektro/issues)

# 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> [!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
1. Log in to Mojelektro.si using any available login options.
2. Under `Moj Profil`, find the option to create a token `Kreiraj žeton`. Use unlimited expiration and click `Create Token.`
4. Copy the newly generated token. You'll need it in the configuration step.
5. Your `meter_id` is `EIMM` number found und `Merilna mesta/merilne točke`## Installation
**Method 1 _(easiest)_:** [](https://my.home-assistant.io/redirect/hacs_repository/?owner=frlequ&repository=homeassistant-mojelektro&category=integration)
**Method 2:** Manually copy `mojelektro` folder from [latest release](https://github.com/frlequ/homeassistant-mojelektro/releases/latest) to `custom_components` folder.
_Restart Home Assistant_
## Configuration
In Home Assistant
1. Go to Settings > Add integration > search > Moj Elektro
2. Enter credentials:
> [!NOTE]
> _As for version 0.2.0 there is no need for `configuration.yaml` file edit!_## Network Tariff Blocks
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
## 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
- [X] Add energy consumption by blocks
- [ ] 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