Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 13 forks source link

Luxtronik Invallid config #7

Closed BobPuts closed 3 years ago

BobPuts commented 3 years ago

Hi there,

Since 0.113 I guess Luxtronik isn't working anymore. It seems that Home Assistant has removed the intergration. Do you now more about this or does it need to work without the intergration?

I have followed the guide you provided and it worked well till the update to 0.113.

Invalid config The following integrations and platforms could not be set up:

luxtronik luxtronik.binary_sensor luxtronik.sensor Please check your config.

Bouni commented 3 years ago

I run 0.113 myself and everything works fine!? Did you install it using HACS?

Can you post the luxtronik part of your config?

BobPuts commented 3 years ago

I did install it using HACS. I will try removing the plugin from HACS and install it again. I also attached the yaml as a txt file luxtronik.txt

Bouni commented 3 years ago

Strange! I just checkt my version, I run 0.113.3 and the integration works fine. My config also looks very similar to yours.

BobPuts commented 3 years ago

I have even upgraded it to the latest release: 0.114.1. Still doesn't work. Removed the HACS plugin and reinstalled it. Will try to remove it and reboot the system to check if this work but I'm afraid it wont.

BobPuts commented 3 years ago

I also noticed that the luxtronik dissapeared from the intergration page. https://www.home-assistant.io/integrations/luxtronik Maybe this has something to do with each other?

Bouni commented 3 years ago

I think it was never there, as its no official integration! Thats why you install it using HACS.

Bouni commented 3 years ago

Do you see anything in the logs that could help find out whats wrong!?

BobPuts commented 3 years ago

If I check the logs I see the following: 2020-08-17 17:27:54 ERROR (MainThread) [homeassistant.setup] Error during setup of component luxtronik Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 191, in _async_setup_component result = await task File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/luxtronik/init.py", line 64, in setup luxtronik = LuxtronikDevice(host, port, safe) File "/config/custom_components/luxtronik/init.py", line 89, in init self._luxtronik = Lux(host, port, safe) File "/usr/local/lib/python3.8/site-packages/luxtronik/init.py", line 25, in init self.read() File "/usr/local/lib/python3.8/site-packages/luxtronik/init.py", line 38, in read self._connect() File "/usr/local/lib/python3.8/site-packages/luxtronik/init.py", line 29, in _connect self._socket.connect((self._host, self._port))

Bouni commented 3 years ago

Maybe your HA setup cannot connect to the heatpump for some reason. To be honest, I've never tested for this scenario :grimacing:

Can you verify that the pump is reachable?

Bouni commented 3 years ago

I was able to reproduce the issue on my setup!

home-assistant   |     self._connect()
home-assistant   |   File "/usr/local/lib/python3.8/site-packages/luxtronik/__init__.py", line 29, in _connect
home-assistant   |     self._socket.connect((self._host, self._port))
home-assistant   | ConnectionRefusedError: [Errno 111] Connection refused

If I set a wrong IP in my config the error seems to be the same!

BobPuts commented 3 years ago

Yes I see. Have changed it and it is working again thanks!