krocat / ToonHA

Home-Assistant component for Toon by Eneco

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during setup of component toon

exqua opened this issue · comments

I all,

I get the following error when i want to use toon in Home Assistent.
Can someone help me out with this?


Error during setup of component toon
Traceback (most recent call last):
File "/config/deps/lib/python3.6/site-packages/toonapilib/toonapilib.py", line 319, in _get_status_value
output = self.status[value]
KeyError: 'powerUsage'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/toon.py", line 70, in setup
config['toon'][CONF_NAME])
File "/config/custom_components/toon.py", line 116, in init
self.update()
File "/usr/src/app/homeassistant/util/init.py", line 324, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/toon.py", line 123, in update
self.data['power_current'] = self.toon.power.value
File "/config/deps/lib/python3.6/site-packages/toonapilib/toonapilib.py", line 339, in power
power = self._get_status_value('powerUsage')
File "/config/deps/lib/python3.6/site-packages/toonapilib/toonapilib.py", line 321, in _get_status_value
raise IncompleteStatus(self.status)
toonapilib.toonapilibexceptions.IncompleteStatus: {'code': 500, 'message': 'Internal Server Error', 'description': 'Error communicating with Toon'}

Hi, As you can see in the last line: {'code': 500, 'message': 'Internal Server Error', 'description': 'Error communicating with Toon'}

problem:

The toon servers aren't so strong. They regularly fail.

solution:

Reboot home assistant and check for errors

Hi Scheric,
Thanks for your input.

I've reboot like 20 times in the last 2 days.
Are there other options i can try?

Thanks.

If it does not work after an reaboot from toon. You could try the official TOON Android / iOS app.

If it does not work after an reaboot from toon. You could try the official TOON Android / iOS app.

Hi, The official app does work perfectly so i think i made a mistake. but i can't find it.

Check the API key from the developer website. Or create an new API key.

I am guessing this was an issue with the service. If @exqua you still have issues please reopen.