MyLight Systems – integration broken after migration to Azure AD B2C (OAuth2)

Hello,

I’m a MyLight user in France (solar panels + virtual battery).

MyLight recently migrated their customer platform to a new B2C portal based on Azure AD B2C / OAuth2:
https://client.mylight150.com

Since this migration, the existing HACS integration MyLight Systems (acsedy) no longer returns any data.
It appears to rely on the legacy API / authentication, which is no longer compatible with the new B2C platform.

Authentication now goes through Microsoft Azure AD B2C (openid / profile / offline_access, OAuth2 code flow).

My questions:

  1. Is anyone already working on a new Home Assistant integration compatible with MyLight’s B2C OAuth2 platform?
  2. Has MyLight published (or partially exposed) a new API for this platform?
  3. Would a custom OAuth2-based integration be acceptable if endpoints can be identified?

I’ve already confirmed that the Energy dashboard configuration is correct, so this looks like a pure API compatibility issue.

The MyLight platform (solar + virtual battery) is widely used in France, so there may be other affected users.

Any guidance or pointers would be greatly appreciated.

Thanks.

Looks to me no solution :frowning:
Read it here

I am working on the new API/authentication, but that is not an easy one.
As soon as I have any success, I am in contact with the author of the existing HACS addon.
I can't tell any date right now.

Hi, I am also using mylight150, and very disappointed that there is no open API and integration with Home Assistant.
AI helped me to found a way to see clear text HTTP traffic and get data to reverse engineer the API, but the path to get there is not easy.
Now finding your comment, I'm not sure if I must keep going on this path or just wait you release an update for the addon.

Hello.
I Made Good Progress and fond a way to connect to microsoft b2c clearly and the api is OK too.
After some exchanges with the maintainer of the current integration, I'm preparing a new integration for MyLight150 new api/login.

Thank you :+1:
OMG, I have fed GitHub Copilot with this B2C login URL + RAW dump of HTTP traffic to the API, and Claude AI has written authentication API + MyLight150 API in python, and it is working :exploding_head:

Hi racailloux,
Following your github, I have tried to install your last update from your repo in my HACS (not yet working).

Seeing the available data, there is no "energy [Wh]" (except the battery capacity) but only "power [W]", so I wonder if this integration can be used to feed data into the Energy panel :thinking:

In that case, I am not sure what other alternative there is to use the Energy panel.
maybe I must keep using my DIY-ESP32 Linky (TIC) decoder to retrieve the energy consumption [Wh] from the grid. (I'am not sure yet I'll be able to see injected energy on TIC).

Indeed, my integration is located here: GitHub - Racailloux/mylight150_ha: MyLight150 integration for Home Assistant · GitHub
I'm waiting for direct integration into HACS, but in the meantime, you can add the repository as an external source.
I'm still developing the energy summation part and haven't released it yet; it's currently being tested on my side.

FYI, I am also using the Linky data to simulate a virtual battery with a large calculation, but there are always differences between calculations and data from MyLight150.

FYI, the addon is running and working (tested by Sisou, thanks).
Unfortunately, this is still in HACS approval pending since weeks.
You can use it with manual installation.

The addon is now available on HACS.
Update incoming with money-pot data.