datMaffin / homebridge-tesla-powerwall

Homebridge Plugin for the Tesla Powerwall
ISC License
21 stars 11 forks source link

"Unexpected response: 403 User does not have adequate access rights" #49

Open eoddc5 opened 1 year ago

eoddc5 commented 1 year ago

I haven't seen this happen before, and nothing has changed. But all of a sudden, I am getting this error about access rights.

Nothing seems to be changed or not working correctly, so I'm not sure if this is a random error or something that needs remediation.

I'm not sure what to change, though. Any thoughts?

eoddc5 commented 1 year ago

@datMaffin - hi just wanted to see if you had any ideas here?

[11/15/2022, 10:14:57 AM] [Tesla Powerwall] Login successful [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights [11/15/2022, 10:14:57 AM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights

datMaffin commented 1 year ago

Sorry, I have not seen this.

https://github.com/vloschiavo/powerwall2/issues/45 seems kind a similar, though.

langabi commented 1 year ago

I have similar issues:

No cause I've been able to isolate, though losing grid power (ie going to backup mode) seems sometimes to be a possible trigger (but not always). Tesla support have not been able to understand the issue, they think it's a Tesla app login issue (which it clearly isn't)

pponce commented 1 year ago

I noticed i'm getting the same error "Unexpected response: 403 User does not have adequate access rights" I also see the "Login successful" message.

rob0101 commented 1 year ago

Lots of these for me too:

[12/14/2022, 1:37:18 PM] [Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights

datMaffin commented 1 year ago

I do not like seeing this...

I also do find it kind of weird that it only seems to be an issue here... When looking at the other places, like the home-assistent integration, there seem to be no complains.

ravisab commented 1 year ago

I was running into this error too, and the plugin was not able to connect at all. I connected to the powerwall IP, selected the option to log in as customer, then selected the option to reset the password. Then I added the newly set password into the config. The plugin was able to connect after this even though I still get the "Tesla Powerwall] Unexpected response: 403 User does not have adequate access rights" messages at start up. They are followed by "[Tesla Powerwall] Login successful". I am able to see the solar production, home usage etc in accessories, so the errors might be coming from some other misconfiguration in my config

ravisab commented 1 year ago

Further - I went to the config described in the readme.md - "Using only Home.app supported services (all the visualization services)" and the errors about "adequate access rights" have all gone away.

ravisab commented 1 year ago

Pasting my config with the hope it will help someone -

        {
            "platform": "TeslaPowerwall",
            "name": "Tesla Powerwall",
            "ip": "<IP of your powerwall>",
            "password": "<PASSWORD FOR customer set using web interface at above IP, NOT your tesla app password>",
            "username": "customer",
            "email": "",
            "loginInterval": 39600000,
            "pollingInterval": 60000,
            "lowBattery": 15,
            "additionalServices": {
                "powerwall": {
                    "eveHistory": false
                },
                "solar": {
                    "evePowerMeter": false,
                    "eveHistory": false
                },
                "grid": {
                    "positiveEvePowerMeter": false,
                    "negativeEvePowerMeter": false,
                    "eveHistory": false
                },
                "battery": {
                    "positiveEvePowerMeter": false,
                    "negativeEvePowerMeter": false,
                    "eveHistory": false
                },
                "home": {
                    "evePowerMeter": false,
                    "eveHistory": false
                },
                "gridstatus": {
                    "gridIsDownSwitch": false,
                    "gridIsUpSwitch": false,
                    "gridIsNotYetInSyncSwitch": false,
                    "gridIsDownSensor": true,
                    "gridIsUpSensor": true
                }
            }
        }
davemacaulay commented 2 months ago

I get a similar error, and I believe it's because I have a Powerwall 3, instead of a Powerwall 2.