jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
270 stars 57 forks source link

Retrieving Locally Cached Data from Gateway #376

Open aesculus opened 8 months ago

aesculus commented 8 months ago

I am aware of the cloud based retrieval discussed in https://github.com/jasonacox/Powerwall-Dashboard/issues/12 and also the excellent tool for cloud based data population.

But I am wondering how we can get data from the gateway directly that is cached for a short time (don't know the extent of time). On at least two occasions my communications to the PW, and once to my Tesla Solar Roof Nuerio box, were interrupted for a few hours. Most recently two days ago from 2AM to 5AM for example. The Tesla app showed no data and complained that I needed to connect the PW to WiFi etc. The problem was that a wireless access point of mine had locked up for some reason. A quick reboot of the AP had everything running immediately without any other intervention.

But my data was flatlined for both the Tesla app and the PW Dashboard during that period. But over the next day or so the Tesla app showed data during that time period. Somehow Tesla has a way to go back in time and sync up a cache that is stored within the gateway. I have never seen this documented anywhere and wonder how they do it.

How long this cache is persistent and to what time granularity is hard to say. For the Tesla app it shows the usual 5 minute periods but who knows what granularity that was fed from.

jasonacox commented 8 months ago

Hi @aesculus - Great question. I'm not aware of any way to get cached data from the Powerwall gateway. If it does exist, there is a strong probably that it is downsampled into the lower-resolution format that Tesla Cloud would want and then transmitted at some interval. That is pure speculation, however.

If anyone is able to find an API call to get access to that information, please let us know.