mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
4a11ef8421f45e95db46684f0cd33cc69b118a4b
This is required because the default value is "" which tells the mqtt server to delete the retained value. This in turn means that applications that care about when the car is in a unknown location will not get the retained value. This is a bit different from all of the other values in `@always_published`. For them "" is only published if the value is unknown or an error occurred. So it makes sense to delete the retained value. In this case however, a value of "" generally means "the car is outside any known geofence" which is a valid condition it itself, and it should be retained. There was speculation this might affect the shift_state, but unfortunately this was not followed up with any evidence or details. #1912 There are any number of solutions that could be deployed here. The advantage of this solution however is it is not going to break anything unless you specifically define the TESLAMATE_DEFAULT_GEOFENCE variable. Fixes: #1336
TeslaMate
A powerful, self-hosted data logger for your Tesla.
- Written in Elixir
- Data is stored in a Postgres database
- Visualization and data analysis with Grafana
- Vehicle data is published to a local MQTT Broker
Documentation
The documentation is available at docs.teslamate.org.
Features
Dashboards
- Drive and charging reports
- Driving efficiency report
- Consumption (net / gross)
- Charge energy added vs energy used
- Vampire drain
- Projected 100% range (battery degradation)
- Charging Stats
- Drive Stats
- History of installed updates
- See when your car was online or asleep
- Lifetime driving map
- Visited addresses
General
- High precision drive data recording
- No additional vampire drain: the car will fall asleep as soon as possible
- Automatic address lookup
- Easy integration into Home Assistant (via MQTT)
- Geo-fencing feature to create custom locations
- Supports multiple vehicles per Tesla Account
- Charge cost tracking
- Import from TeslaFi and tesla-apiscraper
Screenshots
Credits
- Authors: Adrian Kumpf – List of contributors
- Distributed under MIT License
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-24T15:12:09.935Z
dashboarddataloggerdockerelixir-langgrafanahacktoberfesthome-automationmqttnixnix-flakeopenstreetmapphoenix-liveviewraspberry-piself-hostedsrtmteslatesla-api
Readme
MIT
103 MiB
Languages
Elixir
83.8%
HTML
6.1%
Nix
2.6%
MDX
2.2%
JavaScript
1.9%
Other
3.3%

