Just want to share one of my custom integrations.
This integration gets gas and electricity prices from My Luminus (Belgium). Only tested on fixed and variable rates.
Hi, was looking for something like thisš!
However, after install and entering log-in I get a āerror connecting to apiā.
Did restart twice and ctrl-F5.
Hmm, strange. I have it working for a few months now, and it also works after HA reboots. Your API responses from Luminus might (slightly) differ. I assume you can login at login.luminus.be without entering a recaptcha?
FYI Luminus has planned a maintenance window for tommorrow (11 jan).
Just looked at my code again and it is possible that i made a mistake in the coordinator class. Iām importing DOMAIN from homeassistant.core. At first glance this shouldāve been imported from .const. I will look into it further as soon as i find some time.
ok, It looks like youāre logged in succesfully but the Luminus API is returning different information with your account. Do you have multiple meters (Gas, Electric, multiple ean numbers)?
Yes, I have multiple ean-numbers, electriciteit and gas.
The response is exactly the same as yours, although not in one screen. When I log in itās already either electriciteit or gas.
hmm. ok, so you get the same response in your browser while the integration receives a 500 internal server error. I created this integration by reverse engineering the MyLuminus website. It is possible that Iām missing some mandatory requests for your account.
Unfortunately, I cannot reproduce this error on my account. This makes it difficult to debug and fix. When you log in with a browser, do you immediately see your dashboard with gas and electricity graphs? Or do you use multiple Luminus accounts within one login?
The failing API call is used to determine the EAN numbers and the type of meter (Gas/Electricity). Perhaps I could add a feature to manually add the EAN and type.
The actual price information is retrieved from this API call https://www.luminus.be/myluminus/api/price-information/{ean}. Where {ean} is the EAN number of your meter.
I have to login with email, next screen password and when I press enter I get the screen like in the snip.
So, top right, a drop-down menu for gas and elektriciteit. Iām not sure if I always start with gas like this morning. Maybe it remembers the last page I visitited from the last time.