Fronius Solar Power Inverter

I am in the same boat, not automation using this yet, but I do have ideas on using it to automate my AC when power is available.

I am trying to mimic devices I have in my existing automation software (Domoticz) so took most of the maths from the nodered flow I was using to integrate that, not all of the values are used in tiles at the moment.

I think I am happy enough with the tile layout for now, but no doubt I will continue to tweak.

I have tried to stick with standard colours for tiles (as per the docs). I wanted to make a “setting” for the colour max values, but I can’t seem to pull a setting into the colour range area, so tweak as you see fit for your system size\power usage.

Solar goes from Grey (0 = Offline) to Blue (mine is set to 5000) as it produces.
The Grid Value will range from positive (Importing) to negative (exporting) The tile for that goes from Orange (import) to grey (0 = Offline) to Green (Export)

I have no doubt I have some errors in my code, first attempt at a DH and first time using groovy, any fixes or improvements welcome.

Current View

Code

Wob