ArekKubacki / Hoymiles-Plant-DTU-Pro

Hoymiles-Plant-DTU-Pro via Modbus TCP
MIT License
37 stars 7 forks source link

Exception: Invalid configuration for Hoymiles DTU platform #8

Closed maickelr closed 1 year ago

maickelr commented 1 year ago

Hi! I have been working with your integration for a couple of months now, it has been working great. However since my DTU Pro got replaced by a new one (it stopped working) I have been having issues connecting. Home Assistant keeps throwing an error message:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform await asyncio.shield(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/hoymiles_dtu/sensor.py", line 71, in setup_platform raise Exception('Invalid configuration for Hoymiles DTU platform') Exception: Invalid configuration for Hoymiles DTU platform

My configuration.yaml contains the following:

sensor:

The DTU is connected to the LAN port. Any idea what could be wrong?

Many thanks for your efforts!!

ArekKubacki commented 1 year ago

In this case, I have to guess. I bet the new DTU has some new firmware. My DTU works best with V00.02.10. For version 14 I couldn't even connect to modbus.

maickelr commented 1 year ago

Thanks for your reply! I had also read about issues with 2.14 but mine has firmware version V00.02.13 by the looks of it - so I did not really think that would be the problem. But I understand it may be hard for you to troubleshoot like this.

No obvious things that I could check to find out where it goes wrong then :)

ArekKubacki commented 1 year ago

Exactly :) However, I would downgrade to 10. They should send the appropriate files to the support. Alternatively, the question whether the new DTU received the same IP address as the old one?

maickelr commented 1 year ago

Yes IP address is the same. I will contact support - see if they can downgrade. Thanks for your efforts on this!