jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
303 stars 66 forks source link

Local setup does not pull up any data #451

Open DOCNY opened 8 months ago

DOCNY commented 8 months ago

I am not sure if this is a new change from Tesla but I had local LAN setup and working fine but now it does not pull any data after the last update. Previously I lost string data. Nothing changed in setup on my end.

If I change to cloud setup the data is enabled again but no historic data.

jasonacox commented 8 months ago

Hi @DOCNY

does not pull any data after the last update

Did it stop working immediately after the update?

Also, can share the logs you see in docker logs pypowerwall? Also run verify.sh to see if everything shows setup correctly.

DOCNY commented 8 months ago

Checking pypowerwall

Checking telegraf

Checking influxdb

Checking grafana

Checking weather411

One or more tests failed.


2024/03/16 22:29:49 stderr 03/16/2024 10:29:49 PM [proxy] [ERROR] Fatal Error: Unable to connect. Please fix config and restart.
2024/03/16 22:29:49 stderr 03/16/2024 10:29:49 PM [proxy] [ERROR] Unable to connect to Powerwall at https://192.168..x.x
2024/03/16 22:29:44 stderr 03/16/2024 10:29:44 PM [proxy] [INFO] pyPowerwall Proxy Started
2024/03/16 22:29:44 stderr 03/16/2024 10:29:44 PM [proxy] [INFO] pyPowerwall [0.7.9] Proxy Server [t42] - HTTP Port 8675
DOCNY commented 8 months ago

Running as cloud

Verify Powerwall-Dashboard 4.1.1 on Linux - Timezone: America/New_York

This script will attempt to verify all the services needed to run Powerwall-Dashboard. Use this output when you open an issue for help: https://github.com/jasonacox/Powerwall-Dashboard/issues/new

Checking pypowerwall

Checking telegraf

Checking influxdb

Checking grafana

Checking weather411

All tests succeeded.

jasonacox commented 8 months ago

Unable to connect to Powerwall at https://192.168..x.x/

This is the core issue. A few thoughts:

CONNECTED - Firmware Version: 23.44.0

It is good you are able to connect to the Tesla Cloud, but this version (23.44.0) should still have local APIs. The key issue seems to be that pypowerwall is not able to connect to the Powerwall.

DOCNY commented 8 months ago

I can access via local ip and can log in with same credentials. Interestingly, I have an home assistant integration and that is down as well. That's why I think it may Tesla limiting local API etc. I get the following error there

A connection error occurred while connecting to the Powerwall: Powerwall is unreachable: Cannot connect to host 192.168.X.X:443 ssl:False [Connect call failed ('192.168.X.X', 443)]

jasonacox commented 8 months ago

I recommend you stop the home assistant integration and stop pypowerwall. Wait 10m for the block to expire and try pypowerwall again.

DOCNY commented 8 months ago

it did not help.

I am using synology docker for both pypowerwall and home assistant. No change in firewall. DSM 7.2 for at least two months or so. I see data drop from 3/9

jasonacox commented 8 months ago

Do you have a shell you can run on the synology? If so, you could try to manually connect by running a python script (of course, replace 192.168.x.x with the actual address):

import pypowerwall
pypowerwall.set_debug(True)
pw = pypowerwall.Powerwall("192.168.x.x","password")
print(pw.status())
print(pw.power())

Also test network from there from the shell:

ping 192.168.x.x
curl -k https://192.168.x.x
DOCNY commented 8 months ago

it has error connecting. On home assistant it seems to indicate it has Powerwall Self signed certificate issue.

443 ssl:False [Connect call failed

jasonacox commented 8 months ago

The Powerwall uses a self-signed cert so that is valid, but it has always been that way.

If you are having troubles connecting using the ping and curl, that indicates you have a network or host (server) issue. Try rebooting or checking your local network for any issues.

DOCNY commented 8 months ago

thanks for all the support. it turned out to be a vlan assignment for Synology port on Unifi. Previous versions used to have option of all Vlans and with the current one, that's not an option and if you choose any vlan (including Synology own vlan) other the default it will do that for some reason.

alexmccoy commented 7 months ago

I am experiencing this issue as well. The web interface loads, but no longer provides an option to log in. It only has the teslapros redirect link. Digging in you can find an "upgrade later" button at the bottom, and can log in, but I am no longer able to reset the password on the gateway, and receive an error about the switch toggle despite me having just toggled it. Is this dead forever? The errors in the powerwall dashboard troubleshooting indicates a bad password.

Screenshot 2024-04-08 at 14 32 35
jasonacox commented 7 months ago

Hi @alexmccoy

This may help you navigate past the upgrade screens: https://github.com/jasonacox/Powerwall-Dashboard/discussions/367#discussioncomment-7278760

You should first stop the Dashboard (docker stop pypowerwall) in case the Powerwall is restricting access based on rate limits (too many login attempts). Let it sit for 10 minutes then try to log in to the Powerwall gateway portal again. If it still says your password is bad, try to reset it.