Core: Can't fetch Ebox data

Created on 27 Sep 2019  路  10Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

0.99.3

Last working Home Assistant release (if known):
Not known

Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io on RPI4

Component/platform:

https://www.home-assistant.io/components/ebox/

Description of problem:
Can't seem to retreive the informations .

2019-09-26 21:01:47 ERROR (MainThread) [homeassistant.components.ebox.sensor] Error on receive last EBox data: Can not find limit span

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

- platform: ebox
  username: !secret ebox_username
  password: !secret ebox_password
  name: "Ebox"
  monitored_variables:
    - download
    - upload
    - total
    - balance
    - usage

Traceback (if applicable):


Additional information:

ebox

Most helpful comment

OK so I managed to get the integration working by copying client.py as stated above. If someone else bumps into this issue, here's how to fix it.

To do so when running HassOS on RPi:

  1. Install the Portainer add-on.
  2. Un-hide the homeassistant container in the add-on Settings.
  3. Access the container console and browse to /usr/local/lib/python3.8/site-packages/pyebox
  4. Download and replace the file with curl https://raw.githubusercontent.com/titilambert/pyebox/bd38d484db772851916f7d5363f454119eda31bd/pyebox/client.py --output client.py
  5. Restart Home Assistant

All 10 comments

  • 1 Got the same problem. I have unlimited internet. That is probably why getting the "internet" limit is a problem.
  • 1 Got the same problem. I have unlimited internet. That is probably why getting the "internet" limit is a problem.

I don't have an unlimited plan.

I also have this issue (with an Unlimited plan). The error seems to be about authentication, no values are comIng back.

I also have the same issue with an unlimited plan but I'm fairly certain that it was working before.

Same problem here. Just started to try and get this working, but no luck! I have unlimited data plan.
Error on receive last EBox data: Can not find limit span

How can we fix this?

FYI I used to be able to work around this 'limit span' issue by logging into the docker and commenting out the line below (yes this is not ideal and not a long term solution). The _get_home_data() function is what tries to fetch the limit. Skipping that used to make things for for me but it doesn't seem to be working anymore. I haven't had time to look into this more. Note that I'm also an unlimited customer.

/usr/local/lib/python3.7/site-packages/pyebox/client.py

async def fetch_data(self):
...

home_data = await self._get_home_data()

Just ssh and replace the client.py with this mod provided by @gjacquet
https://github.com/titilambert/pyebox/pull/8/commits/bd38d484db772851916f7d5363f454119eda31bd

Work well.
Be sure to repeat this step every update. The client.py in pyebox (v 1.1.4) isn't updated.
Good luck.

Is it possible to replace the client.py as mentioned above while using the _Terminal & SSH_ addon? If yes, can you point out the directory where to change the file (using HassOS). All I can read is about _custom_component_, wouldn't this a better way to fix this issue instead of repeating this step on every HA update?

OK so I managed to get the integration working by copying client.py as stated above. If someone else bumps into this issue, here's how to fix it.

To do so when running HassOS on RPi:

  1. Install the Portainer add-on.
  2. Un-hide the homeassistant container in the add-on Settings.
  3. Access the container console and browse to /usr/local/lib/python3.8/site-packages/pyebox
  4. Download and replace the file with curl https://raw.githubusercontent.com/titilambert/pyebox/bd38d484db772851916f7d5363f454119eda31bd/pyebox/client.py --output client.py
  5. Restart Home Assistant

Thank you @jeepotvin . Managed to make it work temporarely with your instructions.
Hope this can be fixed permanently.

Was this page helpful?
0 / 5 - 0 ratings