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.19k stars 30.57k forks source link

Communication problems with P1 device #113873

Closed mefistofelis closed 6 months ago

mefistofelis commented 7 months ago

The problem

Although the device is functioning properly and i get almost all readings (besides the tarif sensors, that i have disabled), I have the feeling some packets are getting dropped. Wifi connection is at 58% . This are the error logs. Any ideas what coukd be causing the problem?

What version of Home Assistant Core has the issue?

core-2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Homewizard

Link to integration documentation on our website

No response

Diagnostics information

logs.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.homewizard.coordinator
Source: helpers/update_coordinator.py:350
integration: HomeWizard Energy (documentation, issues)
First occurred: March 19, 2024 at 11:33:16 (129 occurrences)
Last logged: 09:11:19

Error fetching homewizard data: Error occurred while communicating with the HomeWizard Energy device
Error fetching homewizard data: Timeout occurred while connecting to the HomeWizard Energy device

Additional information

No response

home-assistant[bot] commented 7 months ago

Hey there @dcsbl, mind taking a look at this issue as it has been labeled with an integration (homewizard) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homewizard` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homewizard` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homewizard documentation homewizard source (message by IssueLinks)

DCSBL commented 7 months ago

~Seems to be a duplicate of https://github.com/home-assistant/core/issues/87432?~ ← In this case the connection does not self-heal.

DCSBL commented 7 months ago

In your log I see some template issues, but it seems the HomeWizard integration has not issues. (Finished fetching homewizard data in 0.243 seconds (success: True))

The error Timeout occurred while connecting to the HomeWizard Energy device is triggered when the device is unreachable for that call. 58% is 'not really good', which may cause this.

Please try to improve this connection, if this does not solve the issue or if you are really sure this issue is caused by the HomeWizard integration then we could continue the investigation ;)

Floordb commented 6 months ago

I got today the same error.

DCSBL commented 6 months ago

The exact same, or something similar? Please give some extra details if possible 😉

Floordb commented 6 months ago

The exact same issue in the logs. It occurred 1 time. I have only one p1 meter.

stefanuytterhoeven commented 6 months ago

'Works with home assistant ' Googled for a minute and see messages about this error even in 2022!

CRdeGraaf commented 6 months ago

@DCSBL exact same issue here. I am 100% sure it is the api either on this end, or a bad api on homewizards end. Definitely not a connection issue. Happens sometimes after home assistant restarts until i reset the device or sometimes until i change the ip address.

But here is the kicker. Throughout all of the issues, the homewizard app itself works flawlessly without any lag with live data. Also my ap's show healthy connection stats to the p1 meter non stop.

JesperSkagerberg commented 6 months ago

After a hard restart of HA, I got the same problem. Unplugged and plugged the homewizard (P1) and it started to work again.

DCSBL commented 6 months ago

Closing this as I am pretty sure this all is a duplicate of https://github.com/home-assistant/core/issues/87432

DCSBL commented 6 months ago

@home-assistant close