Moj Elektro API

Home Assistant Integration

Get Moj Elektro for Home Assistant -View code on GitHub -
Energy Conservation Image

Hey everyone! Just dropping in to share some great news about the latest update for the Home Assistant Moj Elektro integration. It's now super straightforward to link your Moj Elektro electric meter info directly to Home Assistant using HACS. This new version is a huge improvement, simplifying how you access your Moj Elektro electricity data with an updated API.

What's Moj Elektro?

Moj Elektro is a cool, free online platform that lets you check out your electricity usage no matter where you are or who supplies your power. It's like having a personal power dashboard where you can see everything from how much electricity you used last month to detailed info every 15 minutes. It's super handy for anyone wanting to keep an eye on their energy consumption and even manage it better. Now, with a Home Assistant custom component you can integrate energy data directly to your platform.

Updated API

No more local certificates required; connect and setup effortlessly through new API service.

Data Analysis

Examine past usage data for smarter decisions. Access 15-minute, daily, and monthly insights.

HACS Supported

Easily install the integration through Home Assistant's HACS, ensuring a smooth setup process.

What's New?

No more headaches with those local certificates to get access! Thanks to Informatika.si, we've upgraded this custom component to use their new API service, making everything way smoother and user-friendly. This means you'll get a better and more reliable connection to your electricity data, all within the Home Assistant ecosystem. Super cool, right?

And here's the cherry on top – with Home Assistant Config Glow, you don't even have to mess around with YAML files anymore to tweak your settings. This custom component brings the convenience of UI configuration right at your fingertips. Imagine just clicking through options to customize your setup, no coding required. That’s pretty awesome, isn’t it? It's all about making things simpler and letting you enjoy the cool stuff without the fuss.

Open Source


"""Validate the token by using the getMeterReadings method."""
async def validate_token(self):
    try:
        validate = await self.getData()
        return validate is not None
    except Exception as e:
        _LOGGER.error(f"Error during token validation: {e}")
        return False

async def getMeterReadings(self, rType=None):
    """Primary API calls."""      

Oh, and did I mention that the Home Assistant Moj Elektro custom integration is completely open source? Yeah, that's right! It's as cool as it gets.

Having this gem in the open-source world means you can peek under the hood, tinker with it, or even contribute to making it better. Imagine tweaking your smart home to perfectly match your energy needs, all while being part of a community that's all about sharing and improving. It's like having the keys to the castle, allowing you to customize your energy management in ways you've never thought possible.

Visualise

Apex Chart Card is a great additional Home Assistant Custom Card for displaying your energy stats in a neat and interactive graph, making it super easy to spot trends and keep track of your energy usage.

Get Moj Elektro for Home Assistant -View code on GitHub -