Reading Data From API

7 comments started 2026-05-28 last 2026-05-29
APIsHome Automation
T
#1 TerryWagstaff

Afternoon

I realise that access to the APs will require a monthly subscription. However, I am trying assess whether that subscription is worthwhile.

I have written my own analysis/bill checking program which reads Battery %, Battery Voltage, Battery charge/discharge watts, Grid voltage and Grid frequency.

I want to extend this to read export/import watts to grid and domestic consumption watts. Both are shown on the web portal so I presume they are available through the API.

It is probably that I am missing something, but I cannot see in the API documentation how to read these values.

Any pointers (or code) would be welcome

Thanks

Terry

T
#4 TerryWagstaff

Thanks to you both for your replies. I am now away for 18 days, so will investigate your suggestions on my return.

I too would like to avoid the subscription. Can you point me to a link where I might find details of HomeAssistant?

Terry

R
#5 Rtidey

There is a huge amount of data, guides, tutorials and help around Home Assistant as it is the premier software platform for free home automation of just about anything you can think of.

Although there are different hardware platforms it can run on, the Raspberry Pi is probably amongst the best choice. I would recommend at least a Pi v4 (v5 even better) with 4GB memory. Although, it can run entirely from the SD card memory, it is better to use a modest external SSD disk to hold the database as there can be quite a lot of database activity which is better handled on a proper disk.

https://www.home-assistant.io/installation/ shows how to install it. Again I would use the native HA OS method which is very simple and most flexible.

Once you have a Home assistant installation then adding the GIVTCP support easily makes all data and control of your GivEnergy system available. This video contains a tutorial on that. It is very easy.

https://www.youtube.com/watch?v=d06Mqeplvns&t=2s

From there you can start to choose what displays and controls you want. You can end up with something much better than the original GivEnergy app.

Out of the box the Home Assistant server is available on the local network where it is installed (i.e. your home). There are, however, several ways to achieve remote control so that you can access and control it from anywhere with internet access. Two popular methods are Tailscale and DuckDNS with nginx reverse proxy. Guides on how to set these up are available.

As a final comment, I set mine up because of the impending susbscription, but now I would do it anway even if there was no subscription as it works much better for me.

R
#6 Rtidey

Here are some screenshots from my Home Assistant showing basic status and control. These are from a desktop view but they reflow nicely onto a phone as well.



H
#7 Hudson123

I too have set up home assistant, in my case on an old laptop I had lying around. Plenty of YouTube guides on how to do this. You have to replace Windows or whatever with HA OS. Sounds difficult but it's not. Once that is running on whatever, putting GivTCP on is easy. Did this last week and I have been away from home since last Saturday and via Tailscale I have been controlling my system with no problems at all. I am on Octopus Agile and it has taken me about 5 minutes a day to choose my charging and export slots. I wish I had done this years ago. I thought I might run into problems, especially with going away, but it's been rock solid. I hasten to add I am a 68 year old technophobe.

Rtidey If I can do it anyone can. Once you do you will never look back. I never realised how much control over the inverter and battery was available that Givenergy chose.to hide from us