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

Fix/tesla start stop #984

Merged
merged 4 commits into from
May 11, 2021
Merged

Fix/tesla start stop #984

merged 4 commits into from
May 11, 2021

Conversation

andig
Copy link
Member

@andig andig commented May 9, 2021

/cc @naltatis

@andig andig added the bug Something isn't working label May 9, 2021
@naltatis
Copy link
Member

naltatis commented May 9, 2021

[tesla ] TRACE 2021/05/09 20:16:29 POST /api/1/vehicles/[....]/wake_up HTTP/1.1
Host: owner-api.teslamotors.com
[tesla ] TRACE 2021/05/09 20:16:30 HTTP/2.0 200 OK
[tesla ] TRACE 2021/05/09 20:16:30 POST /api/1/vehicles/[....]/command/charge_start HTTP/1.1
Host: owner-api.teslamotors.com
[tesla ] TRACE 2021/05/09 20:16:30 HTTP/2.0 200 OK
[tesla ] TRACE 2021/05/09 20:16:52 POST /api/1/vehicles/[....]/command/charge_stop HTTP/1.1
Host: owner-api.teslamotors.com
[tesla ] TRACE 2021/05/09 20:16:53 HTTP/2.0 200 OK
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1b43ed5]

goroutine 117 [running]:
github.com/andig/evcc/internal/vehicle.(*Tesla).StopCharge(0xc000532680, 0x2336660, 0xc000532680)
	/Users/michael/lab/evcc/internal/vehicle/tesla.go:237 +0x135
github.com/andig/evcc/core.(*LoadPoint).setLimit(0xc000226580, 0x0, 0x1, 0xc0004a6200, 0x1)
	/Users/michael/lab/evcc/core/loadpoint.go:475 +0x625
github.com/andig/evcc/core.(*LoadPoint).Update(0xc000226580, 0x40a9c00000000000)
	/Users/michael/lab/evcc/core/loadpoint.go:992 +0x405
github.com/andig/evcc/core.(*Site).update(0xc0007dea80, 0x2317c20, 0xc000226580)
	/Users/michael/lab/evcc/core/site.go:311 +0xab
github.com/andig/evcc/core.(*Site).Run(0xc0007dea80, 0xc0002bcae0, 0x2540be400)
	/Users/michael/lab/evcc/core/site.go:366 +0x1fb
github.com/andig/evcc/cmd.run.func1(0xc0007dea80, 0xc0002bcae0, 0xc0000b8340, 0xc0002bcb40)
	/Users/michael/lab/evcc/cmd/root.go:234 +0x45
created by github.com/andig/evcc/cmd.run
	/Users/michael/lab/evcc/cmd/root.go:233 +0xc3c

Nach der Änderung stürzt evcc ab wenn ich von Sofort auf Stop wechsle.

@andig
Copy link
Member Author

andig commented May 9, 2021

Sorry, ist behoben.

@andig
Copy link
Member Author

andig commented May 11, 2021

@naltatis könntest Du es bitte nochmal probieren?

@andig andig force-pushed the master branch 3 times, most recently from 1c3de5e to d6624ce Compare May 11, 2021 11:08
@andig andig merged commit 4e0d5a4 into master May 11, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix/tesla-start-stop branch May 11, 2021 18:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants