Brian May
c684252940
Publish extra active_route fields to mqtt output ( #3789 )
...
This refactors the existing code to make it more maintainable.
Nil values are published as "nil" string. This ensures that they will
get published, and ensures that MQTT doesn't drop the retained data.
Fixes #3748
2024-04-05 17:29:00 +11:00
Brian May and Jakob Lichterfeld
b5285d2ace
Add location topic (lat and long in one json blob) ( #3729 )
...
* Add location topic
Fixes #3660 .
* doc: update mqtt topics with new location topic
---------
Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de >
2024-03-18 08:36:21 +01:00
Michael Vestergaard
46b971070a
Fix agressive switch to offline when stream gets offline message ( #3672 )
...
* Changed when stream reports offline to fetch data and let result decide the real state instead of switching directly to offline.
* Adjusted test
2024-03-16 11:52:55 +01:00
Brian May
8353b8e988
Make tests non-async ( #3738 )
...
It appears to fix most of the random test errors.
Fixes : #3736
2024-03-15 09:09:05 +11:00
Long Zheng
78fe8116ad
Add navigation active route drive state data ( #3657 )
...
* Add navigation active route drive state data
* Add active_route data to MQTT
* Update MQTT documentation
* Fix streaming test drive state
2024-02-08 08:45:42 +01:00
Michael Vestergaard
1857f25d0f
Handle stream getting the message "Vehicle is offline" and change the state to offline in vehicle ( #3508 )
2024-01-19 14:09:59 +01:00
Nir Klinger
b5fa0242a3
Fix an issue when car is could enter sleep mode while dog mode is enabled ( #3538 )
...
* Fix an issue when car is could enter sleep mode while dog mode is enabled.
* Update pot files
* revert change
* Fix tests
* Fix tests and issue when try to sleep was not showing
* Fix lint issue
2023-12-12 13:18:03 +01:00
Brian May
b643b45ca0
Add charging_state to VehicleSummary ( #3471 )
...
* Add charging_state to VehicleSummary
Fixes : #3078
* WIP
2023-11-23 09:06:51 +01:00
JakobLichterfeld
20f1574d29
Revert "ci: Fix failed elixir tests ( #3428 )" ( #3440 )
...
This reverts commit c00dbaaa5b .
2023-11-16 18:04:52 +01:00
Nir Klinger
c00dbaaa5b
ci: Fix failed elixir tests ( #3428 )
...
* Fix failed tests
2023-11-16 16:28:33 +01:00
Adrian Kumpf
0e7887e5e4
Fix warnings on Elixir 1.16
2023-11-12 19:12:48 +01:00
Adrian Kumpf
b2b0c4555d
Format code
2023-06-11 00:58:26 +02:00
Adrian Kumpf
e243645abb
Add Dialyzer
2023-06-10 18:44:18 +02:00
Adrian Kumpf
8756c66bca
Fix typos
2023-02-03 21:20:10 +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
977f423014
Use new Chinese endpoints
...
Related to #2214
2021-12-13 19:08:22 +01:00
magine
91dca9525b
Fix typos in suspend tests ( #2103 )
2021-10-31 17:30:20 +01: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
796d0c8ef4
Update phoenix to 1.6.0
2021-09-24 22:39:26 +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
b1329ff64f
Increase update rate for power
...
Related to #1504
2021-05-02 14:22:16 +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
d0d305f1c3
Prefix unused variables with '_'
2020-10-07 18:36:05 +02:00
dependabot[bot]
15afc1cc3d
Bump ex_cldr from 2.16.2 to 2.17.0 ( #908 )
2020-09-14 16:36:19 +00:00
Adrian Kumpf
3508d8164e
Reduce log spam
2020-06-09 15:59:09 +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
e3807f1520
Do not suspend manually in case of invalid data
2020-04-11 17:47:30 +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
Adrian Kumpf
1646bb9013
Use default :suspend_min if streaming is enabled
2020-04-08 11:13:43 +02:00
Adrian Kumpf
6d011467c0
Display the total duration of a sleep attempt
2020-04-04 13:43:42 +02:00
Adrian Kumpf
a457d17ffa
Enable streaming for new users as well
2020-04-04 13:43:42 +02:00
Adrian Kumpf
3d13056bdf
Publish elevation
2020-04-02 18:38:11 +02:00
Adrian Kumpf
025a81f874
Do not suspend if the doors or trunk are open
2020-04-02 17:54:37 +02:00
Adrian Kumpf
f1e434e9c9
Remove outdated sleep mode requirements
2020-04-02 16:33:33 +02:00
Adrian Kumpf
a36fb8d66c
Remove option to disable sleep mode
2020-04-02 16:33:33 +02:00
Adrian Kumpf
38893db700
Prevent that more than one request is made at the same time
2020-03-28 15:52:35 +01:00
Adrian Kumpf
a691784926
Use the Streaming API
...
Closes #417
2020-03-28 15:52:35 +01:00
Adrian Kumpf
b65002e80b
Add state transition from :charging to :asleep
...
Fixes #529
2020-03-27 22:12:04 +01:00
Adrian Kumpf
0520993d76
Handle invalid charge data
...
Fixes #534
2020-03-26 18:09:39 +01:00
Adrian Kumpf
e357ebdd3b
Insert position & check geofences at the end of a drive
2020-03-18 16:12:05 +01:00
Adrian Kumpf
2d0e309a6b
Avoid checking out unnecessary connections
2020-02-16 12:41:02 +01:00
Adrian Kumpf
7e00b62525
Publish geo-fence name to an MQTT topic
...
Closes #443
2020-02-13 17:00:43 +01:00