vloschiavo / powerwall2

Tesla Powerwall 2 - Local Gateway API documentation
Apache License 2.0
278 stars 50 forks source link

/meters/aggregates 404 on FW 21.20.3 #49

Closed kairojya closed 2 years ago

kairojya commented 3 years ago

I'm getting a 404 response from /meters/aggregates since the 21.20.3 update. Many of the other end points I checked are responding. I've seen others post on Reddit and TMC about the /vitals page no longer working from the web interface of their gateway, perhaps this is related?

fkhera commented 3 years ago

Slowly tesla just taking all the endpoints away. Does authentication work ?

On Sun, Jul 4, 2021 at 11:12 AM Kyle @.***> wrote:

I'm getting a 404 response from /meters/aggregates since the 21.20.3 update. Many of the other end points I checked are responding. I've seen others post on Reddit and TMC about the /vitals page no longer working from the web interface of their gateway, perhaps this is related?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/vloschiavo/powerwall2/issues/49__;!!IKRxdwAv5BmarQ!PCUXiMUInkGRL3vZTszx865UiG7w2IbiBPdAr4rase8-rC5G-Bhn9_NHhR9CWg$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABU4JYFVS27VVKFJ6YUJRVLTWCQBRANCNFSM47ZNFTNA__;!!IKRxdwAv5BmarQ!PCUXiMUInkGRL3vZTszx865UiG7w2IbiBPdAr4rase8-rC5G-Bhn9_O6lDnBtg$ .

kairojya commented 3 years ago

Slowly tesla just taking all the endpoints away. Does authentication work ?

Are you talking about the POST to /api/login/basic? I haven’t tried it. I’ve only had solar and Powerwalls for a week and have been experimenting a bit before PTO.

What I’ve done is to log in by just hitting my gateway/inverter by its IP on my home’s network (https://192.168.X.X). That prompts me with the Installer/Customer login form. I was able to login to it as a customer on 21.20.2 and 21.20.3. After logging in, I’ve been able to reach various endpoints just using a browser. I’ve tried curl (win10 WSL2) with the -k switch but got the ‘authentication required’ response.

I have Tesla installed solar panels (8.16 kW), a Powerwall Plus (3012170-25-B), Powerwall 2 (3012170-05-B), and Backup Gateway 2. Let me know if you’d like me to try something.

fkhera commented 3 years ago

Sounds like it’s just token authentication so you would have to resolve to get token first then make future calls and refresh token as needed

On Sun, Jul 4, 2021 at 4:41 PM Kyle @.***> wrote:

Slowly tesla just taking all the endpoints away. Does authentication work ?

Are you talking about the POST to /api/login/basic https://urldefense.com/v3/__https://github.com/vloschiavo/powerwall2*post-apiloginbasic__;Iw!!IKRxdwAv5BmarQ!PJSZVKAtWtFq69hhTYoMkNumS8JlN3wK9nghT_XEVf8V6wmd8qAzQKDxMyIw1w$? I haven’t tried it. I’ve only had solar and Powerwalls for a week and have been experimenting a bit before PTO.

What I’ve done is to log in by just hitting my gateway/inverter by its IP on my home’s network (https://192.168.X.X https://urldefense.com/v3/__https://192.168.X.X__;!!IKRxdwAv5BmarQ!PJSZVKAtWtFq69hhTYoMkNumS8JlN3wK9nghT_XEVf8V6wmd8qAzQKCvbQ-xvg$). That prompts me with the Installer/Customer login form. I was able to login to it as a customer on 21.20.2 and 21.20.3. After logging in, I’ve been able to reach various endpoints just using a browser. I’ve tried curl (win10 WSL2) with the -k switch but got the ‘authentication required’ response.

I have Tesla installed solar panels (8.16 kW), a Powerwall Plus (3012170-25-B), Powerwall 2 (3012170-05-B), and Backup Gateway 2. Let me know if you’d like me to try something.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/vloschiavo/powerwall2/issues/49*issuecomment-873686457__;Iw!!IKRxdwAv5BmarQ!PJSZVKAtWtFq69hhTYoMkNumS8JlN3wK9nghT_XEVf8V6wmd8qAzQKBkcgQdBg$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABU4JYCGMQAP5OS65UEPUCTTWDWRJANCNFSM47ZNFTNA__;!!IKRxdwAv5BmarQ!PJSZVKAtWtFq69hhTYoMkNumS8JlN3wK9nghT_XEVf8V6wmd8qAzQKBM37Jtrg$ .

kairojya commented 2 years ago

I tried the end point again today and it worked. I’m not sure why it wasn’t working the other day when I opened this. I tried it (/meters/aggregates) right after trying other end points, and it was the only one responding with 404.