Thank you Thijs. Happy to contribute. I guess most of us rarely explore the uncharted and risky territories of Off-grid mode
I could only see the stack trace after âmimickingâ the high-level âbridge.update()â method into a low-level client code. I imagine there is a âtryâ somewhere that captured the exception.
All the requirements are met and I was able to find the modbus TCP option and enable it.
However, the Huawei Solar Integration failed to connect with errors:
Could not read register value, has another device interrupted the connection? Modbus client is not connected to the inverter.
This made me look further and trying out with QModMaster on Windows, I was able to âconnectâ to the inverter IP adress on port 502, with it also stating the port is opened.
However, reporting on the slave ID 0 or 1 or any further polling fails completely.
Thanks John.
Yes, ping from Home Assistant Terminal to the wifi IP of the inverter works properly.
I have also rebooted both HA and Inverter, but it doesnât work.
In the end I tweaked with all the settings in the inverter.
Slave ID seemed to have been 1, but in the end rebooting HA did the trick. Donât know why.
Thank you, @wlcrs , for the great integration. I have set up a SUN2000-20KTL-M2 (Ver. V100R001C00SPC150) and successfully used your integration via the network.
Does anyone have a solution to display a graph (in Dashboard) like the one in the FusionSolar app (as shown in the picture below)? The app updates every 5 minutes, but I want to use data from the integration to display data in Home Assistant every 30 seconds.
I just submitted another tiny merge request. I use the opportunity of my inverter running in grid-off mode because of maintenance work to ârobustifyâ huawei_solar.
I added a simple test of the power-meter status in the update() function of the bridge class instead of relying on a previous initialization of the meter type. With this, when the grid-off mode starts (possibly automatically), the power meter disappearance does not kill huawei_solar and when the inverter gets gried-tied again, the power-meter comes back to life.
Sometimes I realise the port just gets locked with an older connection after HA restart. You have to restart the connection of the AP on the inverter and it always connects then. Very flaky but it works.
Thanks! Iâd actually experienced this but I didnât suspect it as being an issue with the integration, rather I thought it was weird my power meter went offline when off-grid mode was in play. Glad you picked up on it!
Hello MIchele (Iâm Marco also from Italy) I have read all the article and set it up.
But why I canât find the sensor âsolar_energy_riemannâ to put in the solar energy of the energy tab in my homeassitant?
I have missing somthing?
Itâs not created by default, search further up the thread (just look for âsolar_energy_riemannâ to find it) for the configuration needed to add it!