Commit Graph

209 Commits

Author SHA1 Message Date
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
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
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
451b23634c Sign out if API repeatedly returns 401 response 2021-11-05 18:53:50 +01: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
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
289cf788be Extend test matrix 2021-05-03 13:11:30 +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
Brian May
4f1d998f41 Simplify plugged_in check (#1423)
Avoid false disconnected events.

Fixes #1221
2021-03-13 11:32:57 +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
dd66b072cf Refactor cold weather mode detection 2020-12-30 17:49:54 +01:00
virtualm2000
ff30e5fc6d Added state nil for charge port cold weather mode (#1154) 2020-12-30 17:11:18 +01:00
Adrian Kumpf
5ed9131e1f Determine if the car is plugged in (cold weather)
Addresses #1060
2020-12-03 22:40:08 +01:00
Adrian Kumpf
4b23c8604e Upgrade to Elixir v1.11 2020-10-08 22:17:56 +02:00
Adrian
7872184a5c Display update version in the homescreen update tooltip (#976)
* Make update_version of the API available

* Add update version to the update tooltip

* Fix formatting

* Update translations to reflect the new tooltip

* Fix car controller test

* Add update_version to the mqtt documentation
2020-10-08 10:33:56 +02:00
Adrian Kumpf
92b7e031bb Fix compiler warning 2020-10-04 19:20:27 +02:00
Adrian Kumpf
87d7ff275a Bump Grafana to 7.1
Closes #870
2020-08-27 20:04:32 +02:00
Adrian Kumpf
71a01783ac Show icon if update status is "downloading" 2020-07-26 13:03:55 +02:00
Adrian Kumpf
107574d70f Trigger build 2020-07-10 18:53:48 +02:00
Adrian Kumpf
9311cb4171 Create new connection after too many disconnects 2020-07-08 20:01:28 +02:00
Adrian Kumpf
9c74846432 Tweak streaming timeouts 2020-06-29 17:45:27 +02:00
Adrian Kumpf
3508d8164e Reduce log spam 2020-06-09 15:59:09 +02:00
Adrian Kumpf
3a7eae4760 Periodically store vehicle data while charging
The reason for this is that the Overview Dashboard can display current
temperature values while charging.
2020-05-29 14:11:52 +02:00
Adrian Kumpf
60631907ef Replace mojito with finch 2020-05-14 14:11:20 +02:00
Adrian Kumpf
390e362a09 Update CHANGELOG 2020-05-02 14:12:11 +02:00
Adrian Kumpf
aadfd916d0 Explicitly match on expected states 2020-05-02 13:53:49 +02:00
Adrian Kumpf
190dde7928 Fix firmware version comparison
Addresses #648
2020-04-27 14:57:12 +02:00
Adrian Kumpf
2d08545396 Do not publish unknown values
Addresses #639
2020-04-25 12:50:45 +02:00
Adrian Kumpf
4804aeb767 Reduce the amount of data sent to the client when driving 2020-04-19 15:20:23 +02:00
Adrian Kumpf
27578ff63b Discard incomplete API responses
Follow-up of #577
2020-04-19 12:31:18 +02:00
Adrian Kumpf
79d7076402 End drive when car is put into service mode 2020-04-16 11:16:04 +02:00
Adrian Kumpf
74920519ed Log "Suspending logging" just once 2020-04-14 14:24:42 +02:00
Adrian Kumpf
e3807f1520 Do not suspend manually in case of invalid data 2020-04-11 17:47:30 +02:00
Adrian Kumpf
2e99eee4cf Improve detection of available updates 2020-04-11 17:15:02 +02:00
Adrian Kumpf
3429ecd9eb Handle empty drive_states
Fixes #577
2020-04-11 17:01:49 +02:00
Adrian Kumpf
45d94d52b3 Implement database efficiency improvements
Closes #573
2020-04-11 14:49:44 +02:00
Adrian Kumpf
231583b48f Publish MQTT message when the health check succeeds again
Fixes #551
2020-04-08 13:10:43 +02:00