vloschiavo/powerwall2

Problems receiving data with an ESP8266 on new Powerwall version

moritzlerch opened this issue · 3 comments

Hey,

probably I'll find someone here for this issue... So I got this project running to display data on an LCD screen with an ESP8266 attached. It's open source, I launched it about two days ago. https://github.com/MoritzLerch/pv_display

Problem is that I'm just not able to connect to the Powerwall anymore with the ESP8266. If I do it with curl on my PC everything is fine. What I'm thinking is that there was a Powerwall API update about two days ago. I also found some new information in some endpoints. So this will probably be the cause for my project to not work anymore. I already asked some people but unfortunately we didn't find a solution yet.

Version would be 21.20.6...

Is someone here who has deeper information what the API update did update? Or someone who's experiencing similar problems on the ESP8266 platform?

Hey, thanks for your help. I don't think that those HTTP versions would change anything. The problem occurs before we even get to the http-request point. So I'm actually not even able to connect via HTTPS to the powerwall. So when I was debugging, I found this error BSSL:_wait_for_handshake: failed when I'm trying to connect to the host. So something will be around with that handshake. The while loop just keeps running until the retry counter hits the "stopping" value. Problem would be this probably: httpsClient.connect(powerwall_ip, 443)

That thing that I have to enable HTTP/1.0 is because the meters_aggregates (or something) endpoint returns a lot of data and that involves these chunks I was not able to handle... But that also might or will be an issue I only have to deal with because I'm on an ESP8266.