nfarina / homebridge-tesla

Tesla plugin for homebridge: https://github.com/nfarina/homebridge
154 stars 38 forks source link

Encountering errors post authentication fix #62

Closed rhdny closed 2 years ago

rhdny commented 3 years ago

Homebridge is able to login again, but I'm getting lots of errors and can't manipulate anything other than the connection switch...

This is what I'm seeing in the HB logs: [2/14/2021, 8:24:34 PM] [Model S] Logging into Tesla with username/password… [2/14/2021, 8:24:35 PM] [Model S] Got a login token. [2/14/2021, 8:24:35 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:35 PM] [Model S] Connection on? true [2/14/2021, 8:24:35 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:35 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:36 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:36 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:36 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:36 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:37 PM] [Model S] Using vehicle "Ronin" with state "online" TeslaJS error: Error response: 500 [2/14/2021, 8:24:37 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:37 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:37 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:38 PM] [Model S] Using vehicle "Ronin" with state "online" TeslaJS error: Error response: 540 TeslaJS error: Error response: 500 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 [2/14/2021, 8:24:40 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:41 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:41 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:41 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:41 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:42 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:42 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:42 PM] [Model S] Using vehicle "Ronin" with state "online" TeslaJS error: Error response: 540 [2/14/2021, 8:24:42 PM] [Model S] Using vehicle "Ronin" with state "online" TeslaJS error: Error response: 540 [2/14/2021, 8:24:43 PM] [Model S] Using vehicle "Ronin" with state "online" [2/14/2021, 8:24:43 PM] [Model S] Using vehicle "Ronin" with state "online" TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 500 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540 TeslaJS error: Error response: 540

I've uninstalled/rebooted/reinstalled a few times. Any idea as to what might be going on? Is there somewhere I can grab more detailed logs for this Plugin?

rhdny commented 3 years ago

I'm noticing that I'm getting these errors on installation: sudo -E npm install -g homebridge-tesla@latest npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead: npm WARN deprecated npm i nyc npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.

nfarina commented 2 years ago

The new refresh-token-based authentication should fix this! As for those installation warnings, that is super common for NodeJS programs and can be safely ignored.