Darwin Tesla Power App

I've installed the app for the tesla power wall and managed to get it to connect locally to the power wall however when i view the power wall in devices nothing is being pulled through to it.

Its strange as it pulls through the power wall name and says connected. I'm also able to ping the power wall from hubitat successfully.

i get this error in logs for the manager

Error getting Tesla server bearer token from refresh token: groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized

but i'm not wanting to use the token as its already connected locally

and also this error for the device

2023-06-02 12:33:06.422errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method componentRefresh)

dev:1332023-06-02 12:33:06.053errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method componentRefresh)

dev:1332023-06-02 12:33:05.549errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method componentRefresh)

dev:1332023-06-02 12:33:04.889errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method componentRefresh)

dev:1332023-06-02 12:30:52.845errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method componentRefresh)

dev:1332023-06-02 12:24:16.112debugpinged

dev:1332023-06-02 12:20:28.817errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 202 (method refresh)

dev:1332023-06-02 12:20:24.180errorjava.lang.NullPointerException: Cannot invoke method refreshAccessToken() on null object on line 123 (method refreshAuth)

dev:1332023-06-02 12:19:07.867errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 206 (method poll)

Any ideas?

I have the Tesla drivers from @snell on a test hub and they work great. Have you tried those? I believe they are available via the Hubitat Package Manager. Remember, it's not an app so you have to configure them in the drivers section.

good idea i'll have a look and see what that one is like thanks!

@rakeshg for these two what did you put after the equals?

RefreshRate = REQUIRED - DEFAULT = 5 minutes. The rate at which the device will be polled

  • ReauthorizationRate = REQUIRED - DEFAULT = 24 hours. The rate at which a reauthorization (login) attempt will be performed

I think I just left them as the default. I actually use Node-RED to connect to my Powerwall and gather stats. This was a backup solution so haven't messed around with it too much. I enabled the "create the child devices" toggle and it automatically created devices for my 2 Powerwalls, site, load, battery and solar (corresponds to what you see in the Tesla app).

Hope this helps.

brill, thanks for this. May have found out the issue as well. my password for the power wall doesnt seem to be working!

1 Like

Originally I had the same issue. I had changed user password for the Tesla app and website and it did not seem to like that. I went back to the default (the last 5 digits of the wifi password - I think) and that worked.