Commit graph

56 commits

Author SHA1 Message Date
andig
19a30ac9ca
chore: switch to ReuseTokenSource (#26206) 2025-12-27 14:44:31 +00:00
andig
4f1c21cc00 chore: minor 2025-12-27 13:59:48 +01:00
andig
fe388db66a
chore: refactor caching (#18378) 2025-01-25 13:22:10 +01:00
andig
07fa1b64f8
chore: refactor plugin structure (#18335) 2025-01-23 14:43:04 +01:00
andig
5440142b7c
Charger: remove unhandled status D, E, F (#17956) 2024-12-30 18:44:41 +01:00
andig
e5389633ea
Porsche: fix emobility api (#12500) 2024-02-27 12:09:01 +01:00
MarkusGH
dca99c30bc
Porsche: add wakeup (#10928) 2023-12-07 07:58:26 +01:00
andig
817bc456e7
Porsche: fix oauth scoped (#10908) 2023-11-25 16:17:33 +05:00
andig
48a713a361 chore: check http status 2023-11-05 12:52:12 +01:00
andig
c05de636d9
Porsche: update identity api (#10533) 2023-10-28 17:27:52 +02:00
andig
b4f31cae56
chore: use oauth2 pkce (#9798) 2023-10-06 17:08:20 +02:00
andig
6a908cccc9 chore: simplify 2023-09-09 09:40:26 +02:00
andig
d688134189
Porsche: refactor token refresh (#9802) 2023-09-09 09:37:32 +02:00
MarkusGH
3428a7615a
Porsche: disable forced token refresh (#9554) 2023-08-27 21:37:43 +02:00
andig
66b32d83f8
Volvo Connected: fix token refresh (#8998) 2023-07-17 20:36:36 +02:00
andig
42cbaed4d1
Porsche: refresh tokens within 1h (#8990) 2023-07-17 10:37:36 +02:00
andig
0ad95ee6bb Porsche: remove secondary identity 2023-07-12 21:29:12 +02:00
andig
16d0b025d6 Porsche: validate token every 5min 2023-07-06 22:42:23 +02:00
andig
e8d95afa8c Porsche: fix token refresh 2023-07-03 17:32:42 +02:00
andig
672479ba65
Porsche: add token refresh (#8695) 2023-06-30 09:53:53 +02:00
andig
9c742fb201 Porsche: simplify emobility handling 2023-06-29 11:16:32 +02:00
andig
4d516d5844 Porsche: keep cookies alive 2023-06-27 21:51:04 +02:00
andig
2ffb050fb4
Porsche: switch identity provider (#8546) 2023-06-25 13:01:57 +02:00
andig
78413df565 Porsche: remove remaining mobile api types 2023-06-07 19:04:08 +02:00
andig
2861266fd4
Porsche: remove deprecated mobile api (#8349) 2023-06-07 18:59:26 +02:00
MarkusGH
ee16e3bb67
Wakeup: wake via charger and vehicle api in parallel, add for Porsche (#8204) 2023-06-01 18:09:11 +02:00
andig
52f5bc9927
Porsche: handle invalid emobility responses (#8243) 2023-05-31 21:02:08 +02:00
andig
aedd958d00 Porsche: handle more statuus 2023-04-13 20:23:43 +02:00
andig
6098cc54a4 Porsche: handle privacy mode 2023-04-13 19:42:27 +02:00
andig
ae61e9e5cb
Simplify climater api (#6397) 2023-03-01 11:28:44 +01:00
andig
593304a8e2 chore: use strings.CutPrefix 2023-02-12 13:25:26 +01:00
andig
efa7e1b1fb chore: fix comments 2023-01-04 19:27:36 +01:00
andig
03d6d1418a
Rename SoC to Soc and LoadPoint to Loadpoint (#5549) 2022-12-23 10:19:23 +01:00
andig
815cc58555 chore: apply gofumpt 2022-07-12 11:20:05 +02:00
andig
887394fc0e Porsche: accept inprocess as paired 2022-07-01 17:22:35 +02:00
andig
a93111a58c
Porsche: don't raise error on UNKNOWN cause (#3408) 2022-05-21 14:14:39 +02:00
andig
1bfd0f6355 Require Go 1.18 and use generics (#2116) 2022-04-02 12:47:26 +02:00
andig
7efe7c3436 Porsche: fix mobile api status request
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
2022-03-29 09:29:25 +02:00
Andreas Linde
62680b6f20
Add Porsche Mobile API support (#2439) 2022-01-31 14:05:16 +01:00
andig
07c559b4c7
Porsche: fix token refresh after refactoring (#2152)
Some checks failed
Default / Build (push) Failing after 1m35s
Default / Build UI (push) Failing after 14m12s
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
2021-12-29 22:13:24 +01:00
andig
78138c91bf
Porsche: refactor and use oauth2 library (#2115) 2021-12-25 14:14:09 +01:00
andig
fe217debbf chore: fix ruleguard errors 2021-11-14 12:09:17 +01:00
Andreas Linde
bfb1694abf
Fix token refresh for Porsche vehicles (#1849) 2021-11-09 10:50:37 +01:00
Andreas Linde
e1f8a50062
Porsche: add apis and fix model selection (#1798)
- Make Odomoter, Climater, ChargeState, FinishTime APIs actually usable, they weren't exposed before
- Combine Provider and ProviderEmobility into one, as they complement each other instead of being different APIs for the same purpose
- Fix SoC not working since 27th October. The Emobility API only works if the Status API is called before. Otherwise the Emobility API returns HTTP 502
- Call status api only once before calling the capabilities Emobility API, as the 502 error only happens for that one call which we only need once per vehicle anyway
- Return proper `api.ErrNotAvailable` errors for vehicles not supporting a specific API
- Only do one call at best for every API. Status API is used if Emobility API is called but fails
2021-10-28 16:32:59 +02:00
Andreas Linde
b672502e3e
Porsche: fix vehicle auth (#1771) 2021-10-23 11:19:17 +02:00
andig
4ce8e5a72e Porsche: extract emobility errors 2021-10-20 15:26:28 +02:00
Andreas Linde
a90990ecb9
Porsche: fix api updates (#1670) 2021-09-30 11:44:24 +02:00
Andreas Linde
ccf83bb310
Porsche: fix e-mobility vehicle API routes and add login error handling (#1552)
Change required as Porsche backend was updated
2021-09-14 15:45:41 +02:00
andig
f6035829bd
Add odometer api (#1357) 2021-08-23 13:27:07 +02:00
andig
c77e455809 Update evcc repo uri 2021-08-21 12:53:25 +02:00