-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solis RAI 3kW support #43
Comments
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. |
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 Failed to connect to Modbus device. Will retry` Also this: `This error originated from a custom integration. Logger: homeassistant Error doing job: Exception in callback _run_async_call_action(, >)>>) at /usr/src/homeassistant/homeassistant/helpers/event.py:1506 |
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) |
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. |
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 :-) |
Could you see if https://github.com/Pho3niX90/solis_modbus/tree/feature/speedup made a difference, if any? |
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. |
@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 |
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 |
Nice, Will try it right now. |
🥳. 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 |
The version number in the system has been updated from 1.4.3 to 1.4.4 in both manifest.json and const.py. Additionally, error handling for modbus operations within modbus_controller.py has been updated to streamline failure responses, eliminating unnecessary error check steps and focusing on exception-based error handling. fixes #43 and #27
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.. |
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 😅 |
release 1.4.5 should fix this |
Perfect!! 😍 this works |
Hey @Pho3niX90 found another bug. |
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 #27 (comment)
The text was updated successfully, but these errors were encountered: