Pho3niX90 / solis_modbus

Home Assistant HACS integration for Solis inverters
16 stars 0 forks source link

Wanted to install a new installation #60

Open cgilis opened 1 month ago

cgilis commented 1 month ago

Describe the bug Hi @Pho3niX90 ,

I have a new installation where I want to add this nice plugin. But I always get this error:

CleanShot 2024-05-16 at 17 32 15@2x

Here is the error log:

This error originated from a custom integration.

Logger: custom_components.solis_modbus.modbus_controller
Source: custom_components/solis_modbus/modbus_controller.py:32
integration: solis_modbus (documentation, issues)
First occurred: 17:32:05 (14 occurrences)
Last logged: 17:36:53

Failed to connect to Modbus device. Will retry
This error originated from a custom integration.

Logger: custom_components.solis_modbus.modbus_controller
Source: custom_components/solis_modbus/modbus_controller.py:25
integration: solis_modbus (documentation, issues)
First occurred: 17:32:05 (14 occurrences)
Last logged: 17:36:53

Failed to connect to Modbus device. Will retry, failures = 1
This error originated from a custom integration.

Logger: pymodbus.logging
Source: custom_components/solis_modbus/modbus_controller.py:23
integration: solis_modbus (documentation, issues)
First occurred: 17:32:05 (14 occurrences)
Last logged: 17:36:53

Failed to connect [Errno 111] Connect call failed ('192.168.0.128', 502)
Failed to connect [Errno 111] Connect call failed ('192.168.0.101', 502)
Failed to connect [Errno -2] Name does not resolve
Failed to connect [Errno 111] Connect call failed ('192.168.0.191', 502)

Full log: home-assistant_2024-05-16T15-44-35.549Z.log

cgilis commented 1 month ago

Looks like the same error in #49

cgilis commented 1 month ago

Like you can see in the logs i've tried different IP's to be sure :-)

Pho3niX90 commented 1 month ago

Will investigate the reason behind this. Will have to check how I can reproduce this without losing my data on my installation 😅

cgilis commented 1 month ago

Will investigate the reason behind this. Will have to check how I can reproduce this without losing my data on my installation 😅

Super @Pho3niX90 !! Would it help to give you access to my test server? Can you contact me by mail, so I can share the credentials? --> Christoffel@me.com , or direct via Github, not sure if this is possible 😉

Pho3niX90 commented 1 month ago

Also, if you enter the IP into a browser window, can you reach the inverters' web interface?

cgilis commented 1 month ago

Is something I cannot test right now, because it's on a remote location 🥲

cgilis commented 1 month ago

CleanShot 2024-05-16 at 22 33 07@2x

@Pho3niX90 with VPN it worked the ip is 192.168.0.101

Pho3niX90 commented 1 month ago

CleanShot 2024-05-16 at 22 33 07@2x

@Pho3niX90 with VPN it worked the ip is 192.168.0.101

To be clear, the HA device trying to access the solis is on the same network right? Will send you an email for access.

cgilis commented 1 month ago

CleanShot 2024-05-16 at 22 33 07@2x @Pho3niX90 with VPN it worked the ip is 192.168.0.101

To be clear, the HA device trying to access the solis is on the same network right? Will send you an email for access.

That is correct!

cgilis commented 1 month ago

@Pho3niX90 after updating the firmware of the Solis, the problem is fixed and is now visible in HA. Do you still want to check how you can fix it on older firmwares?

Pho3niX90 commented 1 month ago

@Pho3niX90 after updating the firmware of the Solis, the problem is fixed and is now visible in HA. Do you still want to check how you can fix it on older firmwares?

Aah perfect. I need to note it down, I remember reading that one of the firmwares did have a modbus comms issue.