I have recently installed a Givenergy Inverter and battery to my solar system. This collects a lot of generation, consumption, export and storage data and is available to access by API. I wondered if anyone had experience of uploading Givenergy Data to PVOutput?
Thanks
John
Hi John,
I’m on the waiting list for a Givenergy battery system at present (there’s an order backlog in the UK) and plan to implement this in Python on a Raspberry Pi. Happy to share details with you once it’s up and running if you’re still interested.
Regards
Steve
Now up and running with latest GivEnergy API and 5-minute upload to PVOutput. A few niggles over the weekend with misreported energy stats, but generally works OK.
Hi - just joined PVoutput. I have a GivEnergy battery & associated inverter. I’d be interested in how you got upload to this site configured.
Thought it was worth mentioning that I’ve just had a GivEnergy system installed, and I’ve got the PVOutput upload working via an integration that I’ve written for Home Assistant. Possibly not the way to go unless you’ve already got HA doing other things, but that said it’s not much more effort to install if we’re already talking about Raspberry Pis, etc.
A belated response…
My uploader for Givenergy is written in Python and can run on a Raspberry Pi, etc. It is also able to control the Givenergy system, for example varying cheap-rate overnight charge according to the next day’s Solcast prediction.
The code is free to use and can be found at www.github.com/salewis38/palm
Hello Applegarth
I’ve just had a givenergy system fitted and would like to use your python script to upload data to pvoutput. I’m a bit of a novice with scripts. Can I comment out the parts on controlling the inverter?
I now have a simpler script for uploading data from givenergy to pvoutput. Please PM me if you want a copy.
Hello Schniel,
Could you please share the link to your simple script for uploading givenergy data to pvoutput please? Thanks!
Hello Saharan
I now have the scripts running on my raspberry pi.
This uploads live readings - I have this scheduled every 5 minutes
https://www.dropbox.com/scl/fi/bk6elqn4kjx99itbtbt0z/givenergy2pvoutput_addstatus_v4.py?rlkey=xwmqf4bvxu9u57tgt7yfeutjj&st=hgv1ocfx&dl=0
This uploads the day’s readings - so schedule this at the end of the day
https://www.dropbox.com/scl/fi/85j04il9ry3icmca7smzn/givenergy2pvoutput_v5.py?rlkey=mle8jhxpma7ur6z1enp0idr1w&st=9tpeooad&dl=0
This uploads the days readings from a date of your choice
https://www.dropbox.com/scl/fi/sauwats6id32qlkjkjpxt/givenergy2pvoutput_addstatus_historical.py?rlkey=z5kxeklxfktssi3lew3jvyhce&st=h8c5ss3w&dl=0
The first time you run either script, it will prompt you for your API keys. These will be stored in a file for future use called credentials_storage.py
The scripts aren’t perfect - I’m not sure it’s fully understanding when my battery is importing/exporting to the grid. If you can improve them I’d be interested to know.
Yeah let me know how you get on
Tried your scripts quickly @schneil Scripts for 5 mins uploading and daily uploader works.
Not able to get the historical day script to work properly. Gave error in comparing UTC and non-UTC time. Improved BST time calculation and then does not read the givenergy_data object properly (probably the API has changed?).
I’ll keep playing around and see if I can improve them. I’ll share back. Thanks a lot again for the help.
I think there’s an error in the energy used field as the well. It doesn’t account for power from the grid going to charge the battery. Whereas power from the battery being exported to the grid is included in the export figures? Anyway have a play and let me know if you can improve.