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

Tesla Integration Issues #80

Closed
glynhudson opened this issue May 18, 2020 · 2 comments
Closed

Tesla Integration Issues #80

glynhudson opened this issue May 18, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@glynhudson
Copy link
Collaborator

glynhudson commented May 18, 2020

After testing #67 for the past week or so I've noticed a view issues:

  1. JSON error on the /status output and some related Tesla API calls:

Screenshot 2020-05-08 at 13 52 12
Screenshot 2020-05-11 at 16 04 35
Screenshot 2020-05-12 at 00 48 39

Update: status output JSON has been fixed by c3f36e9. The other JSON issues remain, I wasn't sure how the nested JSON was supposed to work?

  1. No enabled / disabled status in /config, this will become an issue when we come to build the UI for this feature?

  2. Laggy UI, I've noticed when this feature is enabled the UI and RAPI calls can be unresponsive, requiring the interface to be reloaded to correctly display the EVSE status. More testing needed to figure out of this feature is the case of this.

  3. Token expiry? After about a week the Tesla info disappeared from /status/ and /configdisplaystesla_user: "",, my Tesla login seems to have been forgotten. The serial debug periodically displays requestAccessToken()`. Is it possible for the Tesla login expire?

  4. Often seeing 404 Not Found errors with full server response via the serial debut

getChargeState() vehidx=0
18-May-20, 19:12:00: Free memory 202052 - diff 42892 50584
resp
404 Not Found
_HEADER[Server]: nginx
_HEADER[Date]: Mon, 18 May 2020 18:12:01 GMT
_HEADER[Content-Type]: application/json; charset=utf-8
_HEADER[Content-Length]: 60
_HEADER[Connection]: keep-alive
_HEADER[X-Frame-Options]: SAMEORIGIN
_HEADER[X-XSS-Protection]: 1; mode=block
_HEADER[X-Content-Type-Options]: nosniff
_HEADER[Cache-Control]: no-cache
_HEADER[X-Request-Id]: aa3a486c28a9608e1907d4be2fb95526
_HEADER[X-Runtime]: 0.031904
{"response":null,"error":"not_found","error_description":""}

and if the car is sleeping I get the following error (accompanied by the full nginx response), waking the car up via the app and the errors goes away

408 Request Timeout
{"response":null,"error":"vehicle unavailable: {:error=>\"vehicle unavailable:\"}","error_description":""}
  1. The Tesla config does not survive a module reboot. After the modules is restarted the config is lost, the config output shows tesla_user: "", . However, I can see via the serial debug output at startup that the config is being retrieved from the EEPROM but the .com of the email address username is missing the m
ot 'Europe/Lisbon|WET0WEST,M3.5.0/1,M10.5.0' 145 == 145 @ 652:80
Got '[email protected]' 139 == 139 @ 832:32
Got '<TESLA-PASS>' 236 == 236 @ 864:32

Have you @chris1howell or @lincomatic experienced any of these issues?

@glynhudson glynhudson added the bug Something isn't working label May 18, 2020
@jeremypoulter
Copy link
Collaborator

I think I may have fixed the config related issues it the merge to the divert branch

@glynhudson
Copy link
Collaborator Author

Most of these issues have now been fixed, will open separate issue tickets from remaining issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants