biker91620 / ha-cozytouch

Cozytouch support for Home Assistant
GNU General Public License v2.0
16 stars 22 forks source link

Error after a couple of minutes and coming regularly #21

Open browetd opened 4 years ago

browetd commented 4 years ago

I have the following error on all "io" entities (I disabled them as not using them), this type of error is very frequent but everything seems to run ok but filling home assistant log with error messages... I just kept climate entities... Maybe a problem in my config ?

2020-05-02 15:24:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for cozytouch which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you exp$ 2020-05-02 15:32:03 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.salle_de_bain_bas_io_12799941_5 fails Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse response.begin() File "/usr/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/lib/python3.7/http/client.py", line 275, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/util/retry.py", line 403, in increment raise six.reraise(type(error), error, _stacktrace) File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse response.begin() File "/usr/lib/python3.7/http/client.py", line 306, in begin version, status, reason = self._read_status() File "/usr/lib/python3.7/http/client.py", line 275, in _read_status raise RemoteDisconnected("Remote end closed connection without" urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state await self.async_device_update() File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 470, in async_device_update await self.async_update() File "/home/homeassistant/.homeassistant/custom_components/cozytouch/sensor.py", line 124, in async_update await self.hass.async_add_executor_job(self.sensor.update) File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/cozytouchpy/objects.py", line 186, in update self.states = self.client.get_device_info(self.deviceUrl) File "/srv/homeassistant/lib/python3.7/site-packages/cozytouchpy/client.py", line 134, in get_device_info response = self.__make_request("deviceInfo", data={"device_url": device_url}) File "/srv/homeassistant/lib/python3.7/site-packages/cozytouchpy/client.py", line 64, in __make_request response = self.session.get(url, timeout=self.timeout) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 543, in get return self.request('GET', url, kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

cyr-ius commented 4 years ago

Update your version, this has been fixed.