Powerwall Status Monitor and API Request Dumper #249
Replies: 1 comment 3 replies
-
Hi @mcbirse! I'm working to get this setup and am running into this when testing in request mode:
My kit is a Raspberry Pi 3 Model B Rev 1.2 running the Homebridge Raspberry PI image (which looks to be a Raspian-based Raspberry Pi image with Homebridge preinstalled). My /etc/pwstatus.conf looks OK to me. I can manually logon to my PW using the IP/credentials supplied there. The PWPROXY URL appears to work as well (I see the animation OK). curl was preinstalled (below) and I manually installed a mta/mailx and can send email OK. Any help on what to check would be greatly appreciated!
|
Beta Was this translation helpful? Give feedback.
-
I wrote a shell script way back, before I even knew about Powerwall-Dashboard.
I thought it may become obsolete for me given Grafana's alert capabilities, but it has not, and I still find it very useful to be running in the background as a system service on my Alpine Linux host.
It uses curl to poll the gateway with some API requests to get status of grid, battery percentage, and firmware version, and then sends an alert via e-mail on changes or certain conditions (low battery, etc.).
I originally wrote it as I was frustrated with how long it took the Tesla app to notify you of grid outages. With this script running, I'll get an e-mail within 5-10 seconds. It will also notify you of firmware updates within about a minute after update.
I have refined and added features over time. For instance, it will now poll the gateway via the pyPowerwall proxy, but will detect if that is not running/responding, and fall back to direct requests to the gateway.
So, it can run independently of Powerwall-Dashboard, which can be useful. But, it will still utilise the pyPowerwall proxy when available, so as not to overload the gateway with requests from lots of different sources and also utilise the proxies in-built caching.
It's also handy as a API request dumper via simple shell commands.
I have submitted a PR to add this script to the tools, as I believe others may find it useful also. Refer here once merged: Details and Instructions
My setup and configuration to install the script as a system service is quite specific to Alpine Linux however, so if anyone has further instructions to install on other platforms please feel free to add to this discussion or submit a PR to update the README!
Raspberry Pi seems to be commonly used for Powerwall-Dashboard and I assume the set up would be different (I have not used it myself), so some guidance for this platform may be helpful to the wider audience perhaps.
Feedback welcome - would love to hear if this is a useful addition, or if you find any problems or have questions please let us know.
Beta Was this translation helpful? Give feedback.
All reactions