[RE-RELEASE] Fronius Solar Inverter Driver for Hubitat

Cheers, I’ll take a look when I get time. I’ve just started a new job, so I’m a bit time poor ATM.

Hi Derek

We fixed Dave’s problem.

We determined that Hubitat was retrieving data OK from the Fronius.

The problem was an error caused by null values coming from Fronius in the E_Day and E_Year fields. These null values caused this error

“GroovyCastException: Cannot cast object 'null' with class 'null' to class 'int'”.

I found in the API manual that eDay and eYear are always null in GEN24 inverters.

We worked on Sabastian’s code which was returning the above errors where yours was displaying Connect Timed Out. We removed lines 87, 88 and 98 of Sabastian's code which all refer to year and day. After that, it works fine.

It’s beyond our knowledge, but maybe you could add these GEN24 exceptions for your code.

Cheers,

Will


2 Likes

Oh nice! I’ll push an update this weekend.

Great work. :+1:

1 Like

Ok, I've just uploaded v2.3.0 with a GEN24 Compatibility mode:

v2.3.0 - added GEN24 Inverter compatibility mode

SCR-20240824-kkjr

it's a pretty simple implementation to make it easier to tweak if needed:

1 Like

Thanks Derek!

1 Like

No worries.

@dave.webby please let me know if it works for your inverter. :+1:

@dJOS , yes Derek it does work, Thanks Very much. My main objective is to use the data from this to establish when there is excess solar to start the car charging - I can call on the power value to do this.
Thanks very much for your help.

1 Like

Excellent, I’m glad @willnjen could find the issue so we could improve the driver. :+1:

How do you actually "use" this? i have nothing in user apps, built-in apps, nothing in devices for Fronius. I do see the driver, but i don't know how to "install" the inverter i have using this. I'm VERY new to Hubitat, so any assistance is appreciated.

Install it from Hubitat Package Manager, then add a virtual device, and change it to the fronius driver.

1 Like

You’ll also want to ensure that your Fronius is setup with a static IP address and that address is the one you will set in the driver.

1 Like