Adrian Kumpf
a0e12c3808
Store marketing names
...
... and identify new Model S and X.
Closes #2494 , #2496
2022-04-22 15:42:25 +02:00
Adrian Kumpf
b209d348f8
Restart stream process if token expired
...
Addresses #2450
2022-02-20 14:18:00 +01:00
Adrian Kumpf
0d6e288c70
Encrypt API tokens ( #2360 )
...
Store API tokens encrypted in the database.
During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.
If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
2022-02-18 17:03:13 +01:00
Adrian Kumpf
a8bcb906b1
Add charge_current_request(_max) MQTT topics
...
Implements #2412
2022-02-09 17:13:35 +01:00
cwanja
c89088f7d6
Update vehicle.ex ( #2455 )
...
Added support for the 2021.5+ Model X. Fixes #2454
2022-02-09 16:01:01 +01:00
Adrian Kumpf
25e572bb9b
Don't warn in case of common faulty update status
...
After successfully installing an update the Tesla API often reports
"downloading" as `status` while `install_perc` is at 100%.
2022-01-22 13:03:48 +01:00
Adrian Kumpf
6c53788738
Don't suspend logging while downloading an update
...
Fixes #2194
2022-01-22 13:00:50 +01:00
Adrian Kumpf
8aa772872a
Remove support for logins with username/password
2022-01-21 19:09:32 +01:00
Adrian Kumpf
3fb0d2f8d0
Guard against duplicate vehicle responses
...
Addresses #2230
2022-01-01 17:29:36 +01:00
Adrian Kumpf
2c3e8e0560
Revert "Use built-in get_in/2"
...
This reverts commit e53bdc1784 .
Due to a bug with Elixir < 1.13 the built-in get_in/2 handles nil values
incorrectly.
2021-12-14 15:31:32 +01:00
Adrian Kumpf
fc2b188a31
Fix detection of refreshed Model S
...
Addresses #2193
2021-12-14 15:16:54 +01:00
Adrian Kumpf
e53bdc1784
Use built-in get_in/2
2021-12-13 19:40:43 +01:00
Adrian Kumpf
bbf328ce9e
Increase timeout
...
Related to #2136
2021-11-09 18:04:12 +01:00
Adrian Kumpf
451b23634c
Sign out if API repeatedly returns 401 response
2021-11-05 18:53:50 +01:00
Adrian Kumpf
4c7daa9f03
Use BIGINT for elapsed seconds
...
Related to #2077
2021-10-22 12:32:06 +02:00
Adrian Kumpf
a4e7eb7159
Add Model Y friendly_name
2021-10-15 12:45:35 +02:00
Ricky Romero
37a3adb397
Add Mid-Range Model 3 ( #2057 )
2021-10-15 12:35:37 +02:00
Adrian Kumpf
6c0c0eeaa9
Display marketing names
...
Related to #2030
2021-10-06 12:25:18 +02:00
Adrian Kumpf
0d92c9757b
Reduce token refresh frequency
2021-10-01 11:45:43 +02:00
Adrian Kumpf
00ce5c39ce
Use SSO Access Tokens
2021-09-30 13:45:02 +02:00
Adrian Kumpf
ec8b604c00
Discard stale stream data when falling asleep
2021-09-29 19:25:29 +02:00
Adrian Kumpf
e4f0cb9767
Unify wording
2021-09-27 19:19:27 +02:00
Adrian Kumpf
1feb844e2f
Discard stale stream data
...
Related to #1996
2021-09-27 19:05:26 +02:00
Adrian Kumpf
a4304c2915
Add debug log statements
...
Related to #1996
2021-09-27 18:28:22 +02:00
Adrian Kumpf
4ea3034202
Broadcast offline state when car goes offline while driving
...
Fixes #1975
2021-09-22 22:26:36 +02:00
Adrian Kumpf
be76577d5b
Enter captcha code in a separate view
...
Addresses #1836
2021-07-16 18:28:25 +02:00
Adrian Kumpf
1a90cdeadf
Allow to sign in w/o captcha
...
Addresses #1658
2021-06-02 11:24:45 +02:00
Adrian Kumpf
e557152dfb
Consolidate return types
2021-06-01 10:41:26 +02:00
Adrian Kumpf
827f5aa33d
Support Tesla's captcha verification
2021-06-01 00:53:32 +02:00
Adrian Kumpf
289cf788be
Extend test matrix
2021-05-03 13:11:30 +02:00
Adrian Kumpf
2abc022dd7
Print system info at startup
2021-05-03 13:11:30 +02:00
Adrian Kumpf
a0d120f84d
Reorder priorities of city aliases ( #1589 )
...
* Update geocoder.ex
To fix #1030 , by moving the priority of "village" higher than "municipality".
* Reorder priorities of village and municipality aliases
Co-authored-by: shanbs <shanbs@gmail.com >
2021-05-02 15:48:17 +02:00
Adrian Kumpf
b1329ff64f
Increase update rate for power
...
Related to #1504
2021-05-02 14:22:16 +02:00
Martin Nadvornik
b60bf5e6bb
add drive state battery power to published mqtt topics ( #1504 )
2021-04-26 11:36:59 +02:00
Adrian Kumpf
0879a204a7
Publish geofence only if it has changed
...
Fixes #1420
2021-03-17 23:52:47 +01:00
Adrian Kumpf
8513d56b9f
Allow to sign in with API tokens ( #1450 )
...
* Allow to sign in with API tokens
* Test signing in with API tokens
* Add button to go back to login with credentials
* Add note about how to get API tokens
2021-03-16 18:54:48 +01:00
Adrian Kumpf
6d31adba00
Use Mix.Project.config/0 to get version at compile time
2021-03-13 21:06:12 +01:00
Adrian Kumpf
323eb0dd26
Refactor Geocoder to use the Tesla HTTP client
2021-03-13 13:14:02 +01:00
Adrian Kumpf
23d924491b
Refactor Updater to use the Tesla HTTP client
2021-03-13 13:14:02 +01:00
Brian May
4f1d998f41
Simplify plugged_in check ( #1423 )
...
Avoid false disconnected events.
Fixes #1221
2021-03-13 11:32:57 +01:00
Adrian Kumpf
00339cff45
Handle distinct OSM IDs gracefully
...
Addresses #1413
2021-03-10 21:46:29 +01:00
Adrian Kumpf
ff88b0acdb
Fix changing the address language
...
Addresses #1413
2021-03-10 20:27:39 +01:00
Adrian Kumpf
a1e0628c1f
Handle failed token refresh requests gracefully
...
Addresses #1369
2021-02-21 10:46:26 +01:00
Adrian Kumpf
188eb03672
Handle non-existing range values after the car was offline
...
Addresses #1351
2021-02-16 11:08:30 +01:00
Adrian Kumpf
a2129b1457
Hide sign-out button in import mode
2021-02-06 21:39:52 +01:00
Adrian Kumpf
b1991f541e
Add support for v3 API tokens in China ( #1300 )
...
* Add support for v3 API tokens in China
* Add support for refreshing tokens in China
* Log auth requests without debug output
* Log failed requests to the Owner API
2021-02-06 17:28:29 +01:00
Adrian Kumpf
aee513db94
Detect if CSV file contains data for more than one car
...
Fixes #896
2021-02-06 15:24:09 +01:00
Adrian Kumpf
b9ef13addf
Add sign-out button
2021-01-30 20:24:42 +01:00
Adrian Kumpf
3bb2d3086f
Remove support for legacy auth
2021-01-30 18:06:13 +01:00
Adrian Kumpf
410d277f2e
Use built-in Ecto enum type
2021-01-09 00:08:36 +01:00