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
72.33k stars 30.27k forks source link

Rheem Econet throwing mqtt exceptions #75770

Closed tankdeer closed 1 year ago

tankdeer commented 2 years ago

The problem

I noticed that Econet stopped updating a number of entities. Upon looking at the logs, I noticed some exceptions trying to connect. This was working previously, with no changes on my end

What version of Home Assistant Core has the issue?

2022.7.6

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

econet

Link to integration documentation on our website

https://www.home-assistant.io/integrations/econet

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-07-25 00:51:36 ERROR (Thread-25 (_thread_main)) [pyeconet.api] EcoNet MQTT unexpected disconnect. Attempting to reconnect.
2022-07-25 00:51:41 ERROR (Thread-25 (_thread_main)) [paho.mqtt.client] Caught exception in on_disconnect: [Errno -3] Try again
2022-07-25 00:51:41 ERROR (Thread-25 (_thread_main)) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
    rc = self._loop(timeout)
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1185, in _loop
    return self.loop_misc()
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1610, in loop_misc
    self._check_keepalive()
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2560, in _check_keepalive
    self._do_on_disconnect(rc)
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3475, in _do_on_disconnect
    on_disconnect(self, self._userdata, rc)
  File "/usr/local/lib/python3.10/site-packages/pyeconet/api.py", line 218, in _on_disconnect
    client.reconnect()
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
  File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
  File "/usr/local/lib/python3.10/socket.py", line 824, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

Additional information

No response

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

econet documentation econet source (message by IssueLinks)

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

Hey there @vangorra, @w1ll1am23, mind taking a look at this issue as it has been labeled with an integration (econet) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

BillyFKidney commented 2 years ago

I’m experiencing the same issue.

2022-08-07 13:18:29.297 ERROR (Thread-7 (_thread_main)) [pyeconet.api] EcoNet MQTT unexpected disconnect. Attempting to reconnect.
2022-08-07 13:20:29.802 ERROR (Thread-7 (_thread_main)) [pyeconet.api] EcoNet MQTT unexpected disconnect. Attempting to reconnect.
2022-08-07 13:22:30.295 ERROR (Thread-7 (_thread_main)) [pyeconet.api] EcoNet MQTT unexpected disconnect. Attempting to reconnect.
2022-08-07 13:23:30.636 ERROR (Thread-7 (_thread_main)) [pyeconet.api] EcoNet MQTT unexpected disconnect. Attempting to reconnect.
github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tankdeer commented 1 year ago

Still an issue

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tankdeer commented 1 year ago

Still borked

w1ll1am23 commented 1 year ago

This isn't an issue with home assistant, and most likely isn't an issue with the underlying library but could be an issue with either the users network or maybe an issue with the paho library that pyeconet uses.

Moving the defect over to the pyeconet repo.

@tankdeer @BillyFKidney if you have anyore details to add please report them over on this issue.

https://github.com/w1ll1am23/pyeconet/issues/30

First thing I think we can try is to bump the phao-mqtt lob to the latest version.

w1ll1am23 commented 1 year ago

I'm not seeing a way to close this issue... I'm on mobile so maybe I'm crazy. @frenck can you close this?

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.