Commit Graph

589 Commits

Author SHA1 Message Date
Adrian Kumpf
909c96fbdf Gracefully handle invalid charge data
Fixes #343
2020-01-06 19:27:29 +01:00
Adrian Kumpf
1099f87a23 Update a few log statements 2020-01-06 18:21:38 +01:00
Adrian Kumpf
1d2a1597d8 Fix typo in guard clause
Resolves #329
2020-01-06 14:09:54 +01:00
Adrian Kumpf
eea77dd8d0 Exclude drives & charges w/o positions from repair 2020-01-05 12:53:31 +01:00
Adrian Kumpf
9f05bc31fa Gracefully handle invalid authorization grants
Fixes #336
2020-01-03 21:25:10 +01:00
Adrian Kumpf
b725d3bdeb Refactor api module 2019-12-22 14:49:22 +01:00
Adrian Kumpf
91ea9a2c1e Log version at startup 2019-12-22 14:49:22 +01:00
Adrian Kumpf
cf42017fe5 Remove default error message 2019-12-22 14:49:22 +01:00
Adrian Kumpf
af86426c55 Tweak timeouts 2019-12-16 19:54:14 +01:00
Adrian Kumpf
0f1261f703 Increase polling frequency in asleep state 2019-12-16 12:54:12 +01:00
Adrian Kumpf
242f61b82f Display charger power exactly as reported 2019-12-16 11:43:23 +01:00
Adrian Kumpf
e3ef87319d Adjust the interval based on the current state 2019-12-15 15:36:26 +01:00
Adrian Kumpf
475c67f883 Add OSM aliases 2019-12-15 15:36:26 +01:00
Adrian Kumpf
c43754d864 Customize MQTT connection handler 2019-12-15 15:36:26 +01:00
Adrian Kumpf
d301ac86f6 Include customized :tesla_api package 2019-12-15 15:36:26 +01:00
Adrian Kumpf
93d3e817f9 Remove manual phase correction 2019-12-15 15:36:26 +01:00
Adrian Kumpf
bf8119b278 Apply phase correction automatically
Resolves #290
2019-12-15 15:36:10 +01:00
Adrian Kumpf
9d99c147e4 Translate timeouts 2019-12-07 15:39:03 +01:00
Adrian Kumpf
3a1dede5d2 Call /vehicle_data for vehicles that are online
... when retrieving list of all vehicles
2019-12-07 12:58:01 +01:00
Adrian Kumpf
0d041f73f9 Fix ArithmeticError when suspending a new vehicle
Fixes #296
2019-12-07 12:58:01 +01:00
Adrian Kumpf
382a63de15 Various small improvements 2019-12-02 20:00:34 +01:00
Adrian Kumpf
08b72d4e43 Rename module 2019-11-24 14:00:50 +01:00
Adrian Kumpf
f51c2937c6 Cache location-based information 2019-11-24 14:00:50 +01:00
Adrian Kumpf
dde12b0e5b Add option to overwrite sleep mode per geo-fence
Resolves #251
2019-11-24 14:00:50 +01:00
Adrian Kumpf
66bafcb66d Add option to disable sleep mode 2019-11-24 14:00:50 +01:00
Adrian Kumpf
9dda53a47f Add elevation to every position 2019-11-24 13:56:14 +01:00
Adrian Kumpf
62b8a211af Automatically set Grafana URL 2019-11-24 13:56:14 +01:00
Adrian Kumpf
935beb6fb5 Mark map container with phx-update=ignore
Fixes #262
2019-11-19 14:01:39 +01:00
Adrian Kumpf
5142980138 Use reduced default suspend_min for newer vehicles
In order to identify the vehicle it has to be online when signing in to
the Tesla account. The fatback value is still 21 minutes.
2019-11-19 00:21:15 +01:00
Adrian Kumpf
549dedb3bf Decouple global from car-specific settings 2019-11-18 23:43:25 +01:00
Adrian Kumpf
3ef7cd1254 Fetch sign-in status only on index route 2019-11-17 18:04:04 +01:00
Adrian Kumpf
30d10d29a0 Display link to Grafana dashboards
... if a URL was entered on the Settings page.

Resolves #235
2019-11-17 16:56:03 +01:00
Adrian Kumpf
5e2995482c Slightly increase timeout value 2019-11-16 12:24:19 +01:00
Adrian Kumpf
a9e66a6c67 Add for attributes to labels 2019-11-16 12:24:19 +01:00
Adrian Kumpf
915f1878f5 Reject efficiencies <= 0
Fixes #250
2019-11-16 12:24:19 +01:00
Adrian Kumpf
be82d3b2f6 Automatically repair drives & charges w/o addresses
Resolves #239
2019-11-16 12:24:19 +01:00
Adrian Kumpf
79908f6b25 Use 0 as default charger power 2019-11-16 12:24:19 +01:00
Adrian Kumpf
156f77b618 Invalidate pending task 2019-11-16 12:24:19 +01:00
Adrian Kumpf
0846a20122 Use Task.async/1 instead of custom implementation 2019-11-05 23:04:40 +01:00
Adrian Kumpf
a23b5f26f1 Make vehicle fetch async 2019-11-05 21:38:27 +01:00
Adrian Kumpf
0d33b04b48 Make api calls async 2019-11-05 21:38:08 +01:00
Adrian Kumpf
696a4df72f Remove duplicate 2019-11-03 17:04:35 +01:00
Adrian Kumpf
fd6a31d079 Publish "heading" via MQTT
Resolves #225
2019-11-03 13:08:52 +01:00
Adrian Kumpf
409aadd7a1 Display remaining time while charging
Resolves #221
2019-11-03 13:08:52 +01:00
Adrian Kumpf
5feb60230f Temporarily switch to fork of ecto_enum 2019-10-28 13:52:26 +01:00
Adrian Kumpf
b356b19e3c Add tooltips 2019-10-27 21:36:14 +01:00
Adrian Kumpf
2bbb7879ff Test phase correction 2019-10-27 20:34:28 +01:00
Adrian Kumpf
d1064179d8 Refactor Log module 2019-10-26 21:20:05 +02:00
Adrian Kumpf
f38a4221eb Implement phase correction 2019-10-26 21:19:10 +02:00
Adrian Kumpf
f46f454cdc Prevent negative values for charge energy added 2019-10-26 16:22:43 +02:00