Commit graph

34 commits

Author SHA1 Message Date
andig
352012d24b
chore: modernize go sources (#24896) 2025-10-31 15:25:53 +00:00
andig
431066eebb chore: make vin extraction more flexible 2024-05-26 16:20:10 +02:00
andig
d688134189
Porsche: refactor token refresh (#9802) 2023-09-09 09:37:32 +02:00
andig
5401c68267 chore: simplify identifying vehicle 2023-09-08 19:57:43 +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
2ffb050fb4
Porsche: switch identity provider (#8546) 2023-06-25 13:01:57 +02:00
andig
2861266fd4
Porsche: remove deprecated mobile api (#8349) 2023-06-07 18:59:26 +02:00
andig
887394fc0e Porsche: accept inprocess as paired 2022-07-01 17:22:35 +02:00
andig
1bfd0f6355 Require Go 1.18 and use generics (#2116) 2022-04-02 12:47:26 +02:00
andig
af46b731fa
Porsche: simplify login (#2960) 2022-03-24 17:35:46 +01:00
Andreas Linde
dcb6b65002
Re-add pairing check (#2476)
The new API doesn't seem to have a replacement for this yet, and the "old" check works with cars needing the new API for getting SoC values.

So we just add the check back in for now.
2022-02-03 12:14:27 +01: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
3c9b6a263d Validate that vehicle is visible in vendor api on startup 2021-12-25 14:56:30 +01:00
andig
78138c91bf
Porsche: refactor and use oauth2 library (#2115) 2021-12-25 14:14:09 +01:00
andig
a35eff7c7b chore: add ErrMissingCredentials 2021-11-18 12:11:19 +01:00
andig
ca3f793eb1 Add basic form of log redaction for user names and passwords (#1810) 2021-10-31 13:15:41 +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
andig
c77e455809 Update evcc repo uri 2021-08-21 12:53:25 +02:00
andig
80177aa0ad
Restructure device tree and remove soc server (#1060) 2021-05-21 19:18:14 +02:00
andig
5d8f1872fb
Internalize all api implementations (#773) 2021-03-17 18:58:52 +01:00
andig
87803399ca Harmonise vehicle api names 2021-02-01 15:11:42 +01:00
andig
1bc1c45698
Fix some memory leaks caused by not closing HTTP request body (#516) 2020-12-10 11:59:41 +01:00
Andreas Linde
348b3f9030
Updates to Porsche Vehicle API (#512)
* Added Remaining Range to Porsche
* Added finding VIN
2020-12-08 14:47:26 +01:00
andig
a3e6e64d78
Make vehicle soc polling more secure (#508)
- Defaultwert für Cache von 5m auf 15m. Häufiger kann in keinem Fall abgefragt werden. Warnung falls kürzere Zeit eingestellt
- Einschränkung der Updates auf den Ladevorgang über einen poll Modus, per default nur wenn charging
- Abfrageintervall für Zustände außerhalb "charging" konfigurierbar als poll: interval, Default 1h.
- Einmalige Warnung falls häufiger.
- Falls poll: mode: connected Abfrageintervall per default nur 1x je Stunde
- Falls poll: mode: always Abfrageintervall per default 1x je Stunde
- Reset poll timeout on (dis)connect and charger enable/disable events
2020-12-08 08:05:04 +01:00
andig
fb99917cb6 Ensure upper-case VINs 2020-09-30 13:38:00 +02:00
andig
26eeb05c05
Refactor http helper into util/request (#362) 2020-09-27 17:59:08 +02:00
andig
81b72e2c06
Implement factory patterns for device configuration (#303) 2020-08-22 14:41:31 +02:00
andig
b1de0950c2 Return errors instead of failing 2020-07-29 13:42:09 +02:00
andig
e34167ce7d
Implement multiple loadpoints and new UI (#199)
* Support multiple loadpoints

* Finalize loadpoint site split

* Simplify global voltage

* Fix push template error stopping main process

* Show only last error on retry

* Improve influx v1 compatibility

* Update push templates

* Revert influx v1 user change
2020-07-16 09:34:58 +02:00
andig
604a8b9624 Fix linter 2020-05-17 14:59:58 +02:00
andig
8117f8c0b3
Set default http client timeout to avoid deadlocks (#132)
* Set default http client timeout to avoid deadlocks
* Return error instead of unexpected fatal
2020-05-12 12:29:15 +02:00
Andreas Linde
08cee90ea8
Add Porsche api support (#118) 2020-05-10 18:42:23 +02:00