Open Pho3niX90 opened 3 months ago
Could you perhaps post your visible registers here that you are able to see? @cgillis
The idea, is to create a version compatible with your inverter, and then see if it solves the slowdown. One question I never asked in #27 was what inverter they were using.
This will aid in finding the slowdown location, and making more compatible with your inverter.
The first screenshot are the only ones that I can control. The other actions has no effect on my Solis. But that's enough to start / stop charge the battery
Aah I understand better now.
Do you see any errors or warnings in your logs?
home-assistant_2024-04-02T17-22-31.374Z.log
Sorry is this enough? :)
`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: March 29, 2024 at 13:39:08 (145 occurrences) Last logged: 15:24:06
Failed to connect to Modbus device. Will retry`
Also this:
`This error originated from a custom integration.
Logger: homeassistant Source: custom_components/solis_modbus/modbus_controller.py:39 integration: Solis Modbus (documentation, issues) First occurred: 17:06:43 (1 occurrences) Last logged: 17:06:43
Error doing job: Exception in callback _run_async_call_action(
That does seem to show a general connection issues.
Are you able to do a ping test from your raspberry pi to the solis? Just to see how stable the connection is? I will have to do some reading into the HA python code to see why this might be causing delays. My assumption is that this is related to IO to the SD card (assuming you are using one)
On the Pi:
On a macbook:
Ok there are some ups and downs, some dramatic and some not so much of an issue. It might be that the more dramatic ones closer to a second might eventually add up, and cause some queueing.
Is the slowdown (of ha) from the start, or only after a while?
It is from the start, when the plugin is loaded.
btw, the connection is good!
btw, the connection is good!
Got to love unifi! my entire system us unifi
It is from the start, when the plugin is loaded.
Okay let me do some investigation, something is blocking the mainthread in the code. Will try and diagnose, and startup a raspberry pi
Nice! Thx man!
PS I also had it on my Home Assistant Yellow, but yeah that's running on a RP Compute Module :-) So that won't make a difference I think :-) I can if you want, try it on a virtual machine on a Synology NAS?
Could you see if https://github.com/Pho3niX90/solis_modbus/tree/feature/speedup made a difference, if any?
Sorry for my stupid question, but i can't find it in the list
Just released 1.4.3
Installing, will let you know if it works :-)
It feels like no difference here :-s
Those logs just contains info that the rpi is undervolted :)
I will dig some more
Hi @Pho3niX90
I transferred a backup to a new Raspberry Pi 5, but it is still the same issue. home-assistant_2024-04-03T14-19-25.367Z.log
@cgilis I made some more changes, please see if 1.4.4-beta-1 made any difference?
It feels better, but it's still there.. sorry man :-)
going to do another release now
if you can try 1.4.4-beta-2
Feels again a bit better, but after 12 refreshes the loading is still there.. strange home-assistant_2024-04-03T15-43-59.967Z.log
okay let me investigate some more
@cgilis once you have time, please test https://github.com/Pho3niX90/solis_modbus/releases/tag/1.4.4-beta-3 I believe this fixes the issue. I was able to reproduce it my side
Nice, Will try it right now.
@cgilis once you have time, please test https://github.com/Pho3niX90/solis_modbus/releases/tag/1.4.4-beta-3 I believe this fixes the issue. I was able to reproduce it my side
π₯³. Yes itβs working!! Can I buy you a beer? πΊ
That's good news! Thanks so much for helping to find the issue. Quickly going to tidy things up, will then release the real 1.4.4
Is it ok that I remove my log files in this thread?
Yes you can remove them. No longer needed
Small question about Solis RAI 3kW support. Do you think the only things I can control more? (screenshot on top)
Going to check if I can find some documentation on that specific model. But I am sure there should be more controls available.
The items that aren't working, do they work via the Solis app?
The app is not usable anymore as from the installation of the plugin, but that is OK. This plugin is better π
but I think nothing was controllable before in the app..
That's good news! Thanks so much for helping to find the issue. Quickly going to tidy things up, will then release the real 1.4.4
Confirmed working on 2024.4 π
Yeah the modbus can only handle a single connection at a time. So once HA connects with the inverter, it breaks the cloud connectivity. To enable it again, you need to disable the solis ha plugin.
The documentation I am currently finding states it's the same registrars, it might mean that certain switches needs to be off on the RAI before others take effect. Will dig some more
Hey @Pho3niX90 Since the update , these controls became unavailable π
Hey @Pho3niX90 Since the update , these controls became unavailable π
![]()
release 1.4.5 should fix this
Hey @Pho3niX90 Since the update , these controls became unavailable π
![]()
release 1.4.5 should fix this
Perfect!! π this works
Hey @Pho3niX90 found another bug. cant set te charging current.
the latest version should fix that as well
the latest version should fix that as well
Will test it tonight. Thx man!
Sorry for my delayed response, but it is working with the latest version! Thx @Pho3niX90
@Pho3niX90 BTW I have this Solis inverter: Solis RAI 3kW. The only control functions that are working are those in the screenshot below. It's enough to control the battery.
_Originally posted by @cgilis in https://github.com/Pho3niX90/solis_modbus/issues/27#issuecomment-2016818375_