Getting data from my Tesla Powerwall

Looking for some guidance here.

I would like to pull data from my Powerwall 2 into emoncms but reading through the forums has left me confused. The posts seem old and imply that recent changes have left most of the solutions invalid.

So question 1 is - Can you currently pull things like state of charge etc from a powerwall gateway 2?

The next problem is more case of my lack of knowledge. I have decades of programming experience on everything from timeshare systems, PCs, minis and most recently arduinos and a little bit of Raspeberry Pi, but I never got into things like python, json, php and all that. Hence I’m struggling to understand how to get my emonpi to pull data from a powerwall. It seems to be something to do with the node data on the conf file, but what else do I need to do? Some pointers or a guide would be good if this is at all possible!

I’m happy to use google to learn, just need some starters to understand the basics of the process!

Many thanks in advance


Hi Steve,

have a look at the post from John Banks in this thread post #10 Powerwall State of Charge Interfacer stopped working - Tesla updated their software

I only use the Powerwall SoC, as input to the Solar Battery app, has worked fine for me.


I can confirm that my script ( referred to in the previous post is still working for me.
And I hope that statement is not tempting fate.

Hi Steve, you may find some useful information here. I had a powerwall installed a couple of weeks ago and the installer told be that interfacing has got a bit harder recently because Tesla have upped security.

I have not got into the tesla API yet but hope to do so in the future.




Thanks, I will check this out, but I did work through Stuart’s excellent instructions and code and the Tesla feeds are working just fine in my system these days - so go for it!

Now I am starting to look at pulling the half hourly data from Octopus and see what I can gain from that! It is going to be an interesting few months trying to keep the energy bill under control, but the power wall and solar have radically eased the situation for us.