Toon integration for Belgian Engie Electrabel Boxx

Toon integration for Boxx has been working fine for me for a long time, but I recently reinstalled HA on a new raspberrypi and new sdcard and restored from a snapshot and the the access_token was invalid. I can login to the toon developer website and can see the keys there just fine. When I remove and re-enable the integration, it makes me to do the oauth procedure (redirecting to external website). I can select eneco, but that site gives me “OKTA” and “Access denied”, and when I select Engie Electrabel, I get redirected to an Engie themed page in the quby.com domain, that asks me to “login with my boxx mobile app credentials”. To setup my boxx mobile app, I just use the same credentials as for the engie website, but those credentials don’t work here. I can click on “forgot your details”, which takes you to a page where you can link your email to your box, using the id of the boxx display, but that just tells me that my email is already tied to a “boxx”.

Is the integration broken or is there something I can do/clear to make this working again ?

2021-06-05 18:52:22 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry MEESKESLAAN, PIMPERZELE for toon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/toon/__init__.py", line 96, in async_setup_entry
    await coordinator.toon.activate_agreement(
  File "/usr/local/lib/python3.8/site-packages/toonapi/toon.py", line 155, in activate_agreement
    await self.agreements()
  File "/usr/local/lib/python3.8/site-packages/toonapi/toon.py", line 176, in agreements
    agreements = await self._request(
  File "/usr/local/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/toonapi/toon.py", line 135, in _request
    raise ToonError(response.status, json.loads(contents.decode("utf8")))
toonapi.exceptions.ToonError: (401, {'fault': {'faultstring': 'Invalid Access Token', 'detail': {'errorcode': 'keymanagement.service.invalid_access_token'}}})

Hi Multia

I have the same issue. after I upgraded tot version 2021.6.2 I had issues with some integrations. So I went back to the snapshot. However, Since installing the snapshot, i’m not longer able to connect to my boxx. I’m totally sure my password is correct, but the engie page gives an error on user and PW.

I changed nothing, but integration is not able to access toon API. I think this is an issue at the side of engie… I’ll contact engie tomorrow. If they can check/fix something, I’ll let you know…

kind regards
Karel

1 Like

Hey @KarelK, did you find anything ?

Hi @multia , I contacted the support team of Enige. I explained the issue, and referred to Toon and HA…

I did not expect that they would immediately have a ready-made answer. (I don’t think there are that many Engie-clients which are using HA.) To be honest, I’d rather have thought they’d hear it thunder in cologne :wink:.
The first feedback: They have forwarded my question/issue to the development team of Boxx. This afternoon, I asked for an update. The agent told me, that the IT-team is investigating the problem.

I don’t know how far Engie will go with the support on this. But, as they did not instantly close the ticket and forwarded the question to the backend/development team, I’m cofident to get an substantiated answer.

Let’s hope they can do something. Do you know of others with a similar problem?

Same here after upgrading home assistant Core to 2021.6.5.
Also went back to a previous snapshot but it still won’t authenticate.

Hi all

I did not receive an update from Engie yet. Tomorrow I’ll take contact again and ask if they already found something.

I’ll let you know!

Kr
Karel

Hi all

According to the respons of the Engie helpdesk, the guys from the boxx-development team, does not support for the Toon API.
I have sent an email to the guys from Toon. Lets hope they can assist.

I’ll keep you informed.

Integral reply of engie helpdesk:

Dag Karel, we kregen antwoord van de boxx ontwikkelaars dat zij Toon API niet ondersteunen. Ik heb de vraag gesteld aan onze product owner van boxx welke info ik aan jou kan bezorgen. Ik hou je op de hoogte.

Anyone with some update on this?
I’m not getting respons from Toon Dev team.

Anyone who know who can help on this?

Any update on this?
In old version of ha it worked fine :frowning:

I made this github issue Toon integration problem with engie · Issue #18387 · home-assistant/home-assistant.io · GitHub

Anyone who can help?

I found that the url is just not valid, but I don’t know how to change it

hy,

i’ve have the same problem. any updates yet?

thanks

Hi Jasper

I’ve still the same issue. Can’t connect Toon Anymore…
At Engie, They don’t want to help.

Is there someone who’s able to debug the Oauth?

thanks for the response. i’ve figured out that also the spanisch version viesgo does’nt work…
regards

any updates on this problem?

thanks

I can’t even get the integration started.

Registration for developers account just never sends your the email with your password.

Vinc1402, I also don’t get any emails from Toon.
Is Toon developer still maintained (website copyrights 2017)?

I am strongly considering getting rid of my boxx and switching to others.(Rooted or the ESP32 Energy Meter)

are there any updates? still not working.

As I see, I’m not the only one with issues.
I will try to contact Engie for this issue too

any updates from engie yet? also tried to contact them but no response