[Custom Component] MojElectro electricity meter integration

In Slovenia, all electric distributors make the meter data available via mojelektro.si app/portal.
I’ve created a custom-component that transfers this data to HA.

Unfortunately, the portal forces you to use 2-factor authentication so you have to have a signed certificate to read the data in the background.

Also as the data is always reported for the previous day, and I couldn’t find a way to tell HA to log sensor data to the past, data will always be one day off.

Hello.
I have tried to install, but i have some problems.
I have certificate (both files).
And i have created folder mojelektro in /config/custom_components/
Into that folder i have copied files:
init.py
manifest.json
moj_elektro_api.py
README.md
sensor.py
key.pem
cer.pem
folder: .vscode

And i have added lines to configuration.yaml

But upon boot, i get this message:
Setup failed for mojelektro: Integration not found.

What am i doing wrong?
Thank you for your help.

Hey everyone,

Short update: The Moj Elektro electricity meter integration for Home Assistant has been revamped, thanks to a new API service from Informatika.si. No more hassle with local certificates - setup is now simpler than ever with directly configurable in the UI.

setup

A new fork can be found here:
Home Assistant Integration of Moj Elektro electricity meter

Please post any issues, you may encounter.

2 Likes

That is very nice, thanks. Is it possible to add imput and output for a current year? That would be very useful for owners of solar energy with Netmetering. Thanks