Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PW3 Vitals #110

Merged
merged 5 commits into from
Sep 2, 2024
Merged

Add PW3 Vitals #110

merged 5 commits into from
Sep 2, 2024

Conversation

jasonacox
Copy link
Owner

@jasonacox jasonacox commented Sep 1, 2024

v0.11.0 - Add PW3 Vitals

  • Add polling of Powerwall 3 Devices to pull in PW3 specific string data, capacity, voltages, frequencies, and alerts.
  • This adds mock TEPOD, PVAC and PVS compatible payloads available in vitals().

Testing Beta

You can test the updated code by editing the powerwall.yml file and changing the image to the beta version (jasonacox/pypowerwall:0.11.0t64-beta3): [[UPDATED]]

    pypowerwall:
        image: jasonacox/pypowerwall:0.11.0t64-beta3
        container_name: pypowerwall

Restart:

./compose-dash.sh up -d
docker logs pypowerwall -f

Some URLs to check:

Discussion link: jasonacox/Powerwall-Dashboard#392 (comment)

@jplewis2
Copy link

jplewis2 commented Sep 1, 2024

Updated the container using your commands. No errors:

$ ./compose-dash.sh up -d
docker logs pypowerwall -f
Running Docker Compose...
[+] Running 10/10
 ✔ pypowerwall Pulled                                                                                                                                   10.6s 
   ✔ c6a83fedfae6 Pull complete                                                                                                                          5.5s 
   ✔ f52ce548fcd3 Pull complete                                                                                                                          5.9s 
   ✔ 594835f348c0 Pull complete                                                                                                                          6.6s 
   ✔ 062b39265da7 Pull complete                                                                                                                          6.6s 
   ✔ c4a6b685d74e Pull complete                                                                                                                          7.0s 
   ✔ a669eae28383 Pull complete                                                                                                                          7.0s 
   ✔ 453a4f4e4e68 Pull complete                                                                                                                          7.1s 
   ✔ 62a1c6eb07bc Pull complete                                                                                                                          7.7s 
   ✔ 7292013b94a1 Pull complete                                                                                                                          7.9s 
[+] Running 5/5
 ✔ Container influxdb     Running                                                                                                                        0.0s 
 ✔ Container pypowerwall  Started                                                                                                                        1.6s 
 ✔ Container weather411   Running                                                                                                                        0.0s 
 ✔ Container grafana      Running                                                                                                                        0.0s 
 ✔ Container telegraf     Started                                                                                                                        1.5s 
09/01/2024 04:08:22 PM [proxy] [INFO] pyPowerwall [0.11.0] Proxy Server [t64] - HTTP Port 8675
09/01/2024 04:08:22 PM [proxy] [INFO] pyPowerwall Proxy Started
09/01/2024 04:08:22 PM [proxy] [INFO] pyPowerwall Proxy Server - Local Mode
09/01/2024 04:08:22 PM [proxy] [INFO] Connected to Energy Gateway 192.168.91.1 (My Home)
09/01/2024 04:08:22 PM [proxy] [INFO] TEDAPI Mode Enabled for Device Vitals (full)
09/01/2024 04:08:23 PM [pypowerwall.tedapi.pypowerwall_tedapi] [WARNING] This API [get_api_sitemaster] is using mock data in tedapi mode. This message will be printed only once at the warning level.
09/01/2024 04:08:23 PM [pypowerwall.tedapi.pypowerwall_tedapi] [WARNING] This API [get_api_powerwalls] is using mock data in tedapi mode. This message will be printed only once at the warning level.
09/01/2024 04:08:23 PM [pypowerwall.tedapi.pypowerwall_tedapi] [WARNING] This API [get_api_auth_toggle_supported] is using mock data in tedapi mode. This message will be printed only once at the warning level.

http://localhost:8675/tedapi/battery is empty:
{}

Other 3 URLs look okay:

pyPowerwall [0.11.0] Proxy [t64]

Click here for API help.

StatValue
pypowerwall0.11.0 Proxy t64
modeLocal
gets571
posts0
errors0
timeout0
ts1725221555
start1725221302
clear1725221302
uptime0:04:13
mem40624
site_nameMy Home
cloudmodeFalse
fleetapiFalse
tedapiTrue
pw3True
tedapi_modefull
siteidNone
counter0
authmodecookie
URI: /api/troubleshooting/problems22
URI: /api/sitemaster34
URI: /api/powerwalls34
URI: /api/auth/toggle/supported14
URI: /api/meters/aggregates34
URI: /api/system_status/grid_status34
URI: /api/system_status/soe34
URI: /aggregates51
URI: /soe51
URI: /strings51
URI: /alerts/pw51
URI: /pod51
URI: /freq51
URI: /temps/pw51
URI: /version3
URI: /vitals2
URI: /help1
URI: /tedapi/components1
URI: /tedapi/battery1

Page refresh: 2024-09-01 16:12:35.496601

@jasonacox
Copy link
Owner Author

http://localhost:8675/tedapi/battery is empty:

Thanks @jplewis2 ! I fixed this and also added some missing frequency payloads for the inverter (TEPINV). If you can, give this beta version a try: jasonacox/pypowerwall:0.11.0t64-beta3

@jasonacox jasonacox merged commit 34f4fbd into main Sep 2, 2024
25 checks passed
@jasonacox jasonacox deleted the v0.11.0 branch September 2, 2024 01:46
@jasonacox
Copy link
Owner Author

jasonacox commented Sep 2, 2024

https://pypi.org/project/pypowerwall/0.11.0/

Docker - Proxy: jasonacox/pypowerwall:0.11.0t64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants