Fronius Primo integrated with Hubitat?

Hi! I’m wondering if anyone has been successful in integrating their Fronius Primo Inverters with Hubitat?

If so, I’m wondering how you were able to achieve this?

I recently got a solar array using a couple of Fronius Primo inverters. I’d love to be able to integrated them to Hubitat, but have not yet been successful. I’ve tried using the following driver, with either Inverter numbers 1 or 2; the ip is correct (i can access via web browser) and using Port number 80.

In case someone can figure this out… the code above give me the following:

On one inverter:

On the other:

Good news! A friend who is leaps and bound better than I at coding provided me with some much needed help and guidance and we were able to resolve the issues with the code. The integration now works perfectly!

In case anyone else has a Fronius inverter that they wish to integrate, here is a link to the fixed-up code:

https://raw.githubusercontent.com/SebastienViel/FroniusInverter/main/FroniusSolarInverter.groovy

This link can be used to import the code directly to create a new device driver.

The code itself is located in here:

1 Like

With this update, and sending the results from the fronius inverter and also my energy meter with a “Hubitat to Google Sheets” integration, I create the following graph that shows me my production and consumption for the past 3 days.

I have a couple EVs that I charge with the excess solar energy. Using Hubitat and an integration to one of my EV’s, I update the charge amperage on one of those up and down to match with the extra energy being produced.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.