cozylife / hass_cozylife_local_pull

home asstiant plugin
81 stars 35 forks source link

Error during setup of component hass_cozylife_local_pull #15

Open miguel-victor-tic opened 1 year ago

miguel-victor-tic commented 1 year ago

Logger: homeassistant.setup Source: custom_components/hass_cozylife_local_pull/tcp_client.py:50 Integration: hass_cozylife_local_pull (documentation) First occurred: 23:33:56 (1 occurrences) Last logged: 23:33:56

Error during setup of component hass_cozylife_local_pull Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 256, in _async_setup_component result = await task File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/hass_cozylife_local_pull/init.py", line 23, in setup 'tcp_client': [tcp_client(item) for item in ip], File "/config/custom_components/hass_cozylife_local_pull/init.py", line 23, in 'tcp_client': [tcp_client(item) for item in ip], File "/config/custom_components/hass_cozylife_local_pull/tcp_client.py", line 50, in init s.connect((self._ip, self._port)) ConnectionRefusedError: [Errno 111] Connection refused

miguel-victor-tic commented 1 year ago

Capturar Capturar2 Capturar3 Capturar4

rezendea commented 11 months ago

I am having the exact same problem, any lucky on any solution? Apparently the plugin author doesn't take too much time answering the issues here at github...

jenskaesler commented 10 months ago

Hello together,

I have had exactly the same error message. After some research I found a workarround which is working within the last 5 core updates without any error message.

I have change the following.

  1. Go to your custom components folder and the subfolder hass_cozylife_local_pull
  2. Open the file udp_discover.py and change the following section as shown in the screenshot:

image

  1. Do exactly the same in the file test.py
  2. Restart HA

Since these changes I don´t receive the error messages again. But it could be that HA is not able to contact the device. In my case the DHCP lease was expired. It seems that HA only discover (or rediscover) the cozylife devices only on startup. So in such case a simple restart of HA could solve the problem and the device is reachable again.

Hope this information could help you to solve your issue too.

Cheers Jens

cozylife commented 9 months ago

Hello together,

I have had exactly the same error message. After some research I found a workarround which is working within the last 5 core updates without any error message.

I have change the following.

1. Go to your custom components folder and the subfolder hass_cozylife_local_pull

2. Open the file udp_discover.py and change the following section as shown in the screenshot:

image

3. Do exactly the same in the file test.py

4. Restart HA

Since these changes I don´t receive the error messages again. But it could be that HA is not able to contact the device. In my case the DHCP lease was expired. It seems that HA only discover (or rediscover) the cozylife devices only on startup. So in such case a simple restart of HA could solve the problem and the device is reachable again.

Hope this information could help you to solve your issue too.

Cheers Jens

Hello. Can you submit a PR?