home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.41k stars 30.65k forks source link

HomeWizard Energy - Aborted: Unexpected error #67388

Closed Theskyer closed 2 years ago

Theskyer commented 2 years ago

The problem

I've treid the official home energy wizard intergration for Home Assistant but when I enter the IP adres of my P1 meter I get the following error:

image

i've verified the IP adres is correct via the MAC Adres and when I call the API using the webbrowser (http://{IP_ADDRESS}/api/v1/data) it does show actual data.

image

Some details:

Home Assistant OS 7.4 Core Version: core-2022.2.9 Supervisor Version: supervisor-2022.01.1 P1 meter V 2.13 API enabled in app (and callable).

I've had this issue with both the HACS version as well as the Official integration since the very start. Always this error.

What version of Home Assistant Core has the issue?

2022.2.9

What was the last working version of Home Assistant Core?

Never worked

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeWizard Enegery

Link to integration documentation on our website

https://my.home-assistant.io/redirect/config_flow_start?domain=homewizard

Diagnostics information

Example YAML snippet

No response

Anything in the logs that might be useful for us?

_Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/homewizard/config_flow.py", line 175, in _async_try_connect_and_fetch await energy_api.initialize() File "/usr/local/lib/python3.9/site-packages/aiohwenergy/hwenergy.py", line 69, in initialize if not await device.update(): File "/usr/local/lib/python3.9/site-packages/aiohwenergy/device.py", line 62, in update response = await self._request("get", "api") File "/usr/local/lib/python3.9/site-packages/aiohwenergy/hwenergy.py", line 141, in request _LOGGER.debug("%s, %s", resp.status, await resp.text("utf-8")) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 129, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 212, in do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError__

Additional information

No response

DCSBL commented 2 years ago

The error says timeout, which may happen when the device on the other side does not respond at all. Can you check if you Home Assistant installation can reach the P1 meter (is it in the same subnet or maybe blocked by a firewall).

I assume that you've double checked that the IP address is correct?

probot-home-assistant[bot] commented 2 years ago

homewizard_energy documentation homewizard_energy source (message by IssueLinks)

DCSBL commented 2 years ago

@chemelli74 please note that the domain/label is ‘homewizard’

probot-home-assistant[bot] commented 2 years ago

homewizard documentation homewizard source (message by IssueLinks)

Theskyer commented 2 years ago

Hey Guys I got it working.

Problem was with the network setup as suggested. I had plugged in my Pi running HA directly into the router while the P1 meter was connected to my router (the modem is in bridge mode). This resulted in the HA being on a different subnet than the P1 meter thus the timeout error. As soon as I pluggen my Pi into the router the problem was solved and the P1 meter was auto discoverd.

Thanks to all for support and help, it is greatly apriciated

DCSBL commented 2 years ago

Good to hear! You can close this issue.