Commit graph

48 commits

Author SHA1 Message Date
andig
6463e4cffd Align token source usage 2021-05-02 11:12:19 +02:00
andig
32e1ba10e1 Convert identity into oauth2 token source 2021-05-02 10:57:47 +02:00
andig
f2da9b4594 Move api constants 2021-05-02 10:55:43 +02:00
andig
ca2ccfa90f Refactor TokenRefresher interface 2021-05-02 10:45:45 +02:00
Michael Geers
bf246f37ef
Easee: improve enabled status detection (#948) 2021-05-01 12:20:48 +02:00
andig
eb0927af9a
Mqtt: add jq parsing (#943) 2021-05-01 10:32:50 +02:00
andig
dadd2a4c4e
Upgrade dependencies (#942) 2021-04-30 13:10:12 +02:00
Markus Thierolf
6d633312d7
Smarthome outlets: Add charge rater api (#936) 2021-04-29 09:54:07 +02:00
andig
0dc8e25d2f
Skoda: respect home region (#933) 2021-04-27 20:42:11 +02:00
Markus Thierolf
8420445d90
TP-Link: add ChargeRater based on get_daystat (#932) 2021-04-27 15:03:21 +02:00
andig
e678daba4d More comment cleanups 2021-04-25 22:12:48 +02:00
andig
109072d57e Fix broken import 2021-04-25 21:28:44 +02:00
andig
2fd2bc23f2 Cleanup api comments 2021-04-25 20:44:09 +02:00
Michael Geers
c1269e2f06
Easee: fix enabled detection (#921) 2021-04-25 20:25:49 +02:00
andig
5681d1996b
Add SponsorToken configuration for Easee (#920) 2021-04-25 18:59:00 +02:00
andig
ef06e9b489
Document smart home outlets and simplify TPLink (#919) 2021-04-25 18:56:56 +02:00
andig
3284444279
Fix error handling 2021-04-25 12:54:25 +02:00
andig
939f744327
Add Easee charger (#918) 2021-04-25 12:15:53 +02:00
andig
85c960408e Remove stray print
Some checks failed
Build / Build (push) Failing after 5m38s
Build / Build UI (push) Failing after 1m50s
Build / Publish :latest (push) Has been skipped
Build / Publish :release (push) Has been skipped
Build / Release (push) Has been skipped
2021-04-22 17:52:58 +02:00
andig
dc368b7c52
Hyundai/Kia: add password refresh (#905) 2021-04-22 17:37:40 +02:00
andig
2f6f48b5f5
Kia/Hyundai: support account migration and multiple vehicles (#904) 2021-04-22 12:46:51 +02:00
Markus Thierolf
553bd0c378
Add TP-Link smart plug pseudo charger (#899)
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-04-22 12:44:23 +02:00
andig
a987fd02f1 Fix error potentially hidden 2021-04-18 11:26:31 +02:00
MrJayC
21cc2f4d90
Ford: add status refresh, range and token refresh (#860) 2021-04-18 10:57:38 +02:00
andig
fc14a0eb20
Add soc client/server implementation (#839) 2021-04-15 22:34:44 +02:00
andig
995a1bb942 Fix token refresh
Some checks failed
Build / Build (push) Failing after 2m4s
Build / Build UI (push) Failing after 1m49s
Build / Publish :latest (push) Has been skipped
Build / Publish :release (push) Has been skipped
Build / Release (push) Has been skipped
2021-04-15 20:51:41 +02:00
Michael Geers
7d13b60d11
Add Tesla climater (#873) 2021-04-14 10:01:26 +02:00
Markus Thierolf
099f37ee4f Add range and charge status (#842) 2021-04-07 20:48:09 +02:00
andig
110cc0d713 Fix api comment 2021-04-07 10:04:33 +02:00
andig
cfd190bc17 Minor cleanup 2021-04-05 22:05:31 +02:00
Markus Thierolf
bec3116368
Add Niu vehicle api (#836) 2021-04-05 21:56:11 +02:00
andig
8befdcf41e
Refactor token refresh handling into TokenSource and TokenRefresher (#837) 2021-04-05 17:13:02 +02:00
Andreas Linde
33dc71938e
Fix issue when VIN is provided (#834) 2021-04-05 11:08:37 +02:00
Markus Thierolf
711ec8357d
Add Tasmota pseudo charger (#829) 2021-04-03 00:01:50 +02:00
Andreas Linde
6df4d777b9
Improve Porsche Vehicle Support for PHEV (#831)
* Improve Porsche Vehicle Support for PHEV

Only the Taycan supports the emobility API, all other PHEV Porsche vehicles don’t. So adopt this to support both scenarios.

- Check if the emobility API token is available
- Check if the given car is a Taycan and only use the emobility API for this car
2021-04-02 23:59:14 +02:00
andig
c977a47c4a
Update seat.go 2021-04-02 09:57:46 +02:00
andig
6dd353b613
Unserialize temperature (#832) 2021-04-01 19:11:08 +02:00
Andreas Linde
ad1ce28eae
Fix token refresh (#830)
The bug reported via #825 leeds to the conclusion that this could fix the issue.

This needs to be tested with proper credentials, as I don’t have any!
2021-03-31 21:48:09 +02:00
Andreas Linde
f793a46007
Fix unmarshaling for ChargePowerKW (#826) 2021-03-31 13:05:43 +02:00
Markus Thierolf
e3f0efce2a
Handle invalid outdoorTemp (#820)
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-03-29 23:33:40 +02:00
Andreas Linde
8faeb29070
Fix token refresh not working when refresh token expired (#813)
When a token refresh was done longer than 10 minutes after the last login or refresh, it returns an error. In this case a new login should be done instead.
2021-03-28 18:33:05 +02:00
andig
1d79f75980
Cleanup and test for optional interfaces (#799) 2021-03-22 12:51:10 +01:00
Andreas Linde
e07f09fd67
Added support for FinishTime 2021-03-21 12:27:11 +01:00
Andreas Linde
d665e1df70
Added support for Climater 2021-03-21 12:13:16 +01:00
Andreas Linde
bbb3d940f8
Added charging state 2021-03-21 12:04:26 +01:00
Andreas Linde
8008611c22
Update API usage
- Use Emobility API calls to get proper SoC and Range values as the default API call isn’t always up to date
- This required to use a second auth token, that’s why the auth flow had to be adjusted
2021-03-21 11:52:07 +01:00
andig
454688ac9f Don't retain start/stop actions 2021-03-18 10:15:07 +01:00
andig
5d8f1872fb
Internalize all api implementations (#773) 2021-03-17 18:58:52 +01:00