I don’t like how the Fronius integration works, and I don’t have time to rewrite it. I was already using the Fronius Data Push feature to send data into Splunk, so wanted to do something similar with Home Assistant using its webhook trigger.
Thanks to Home Assistant 2021.04, this is now super simple to setup using the new template system. All you do it setup the Fronius Invertor “Push Service” to send meter data to the “froniusmeter” webhook, and powerflow data to the “froniuspowerflow” webhook, throw the config in your configuration.yaml, and your done!
You will notice I am doing some terrible string manipulation, that is because the JSON payload is not sent with JSON content-type, and so is interpreted as the form key.