Home Assistant upload

So I have a smart home system which is running Home Assistant (on a raspberry pi). I have a heap of things feeding into it including my Flukso real time solar/consumption power. I’ve been wanting to simplify my siuation by getting rid of the Flukso and using an aruino to feed in pulse meter values but have stumbled for a while on how to get HA to upload to PVOutput. I just solved the problem!

Solution is here: