Script not working anymore

You might like this I did as well.

I have a fronius inverter as well.