Custom Component - DataCoordinator

Hi all, I’ve been working with GivEnergy Solar battery/Invertor company here in the UK and have developed a python-based local access integration. This allows pulling of Energy stats and control of the battery system.
I want to take that Python Code and create a custom component. I’ve been reading up on the dev documentation, but just can’t get me head round the DataCoordinator approach. I can call a single python function and it returns a json array with a whole load of data. How do I then populate entities using the DataCoordinator capability?
Are there any simple (and real) integrations I can look at to help get my head round how to do this.

I’m no software engineer and only learnt python for this project. Any and all help much appreciated!

1 Like