A custom integration for Home Assistant to monitor leased vehicles and calculate remaining kilometers.
- made with the Ultra Vehicle Card, HA-LCARS (YES i am a Star Trek Fan...), MySkoda Integration and of course My Leasing Tracker Card
A huge Thanks to all great Dev out there!
- โ 22 automatic sensors - Comprehensive monitoring of all leasing data
- โ Actual + estimated values
- โ UI configuration - No YAML configuration needed
- โ Multiple vehicles - Any number of leasing contracts in parallel
- โ HACS compatible - Easy installation and updates
- โ German + English - Full translations
- Remaining KM Total
- Remaining KM this year (actual)
- Remaining KM this month (actual)
- Estimated remaining KM this year
- Estimated remaining KM this month
- Driven KM (total)
- Driven KM this month
- Driven KM this year
- Average KM per day
- Average KM per month
- Status (On Track / Over Plan / Under Plan)
- KM difference to plan
- Progress (%)
- Remaining days/months
- Allowed KM total
- Allowed KM this year
- Allowed KM this month
- Allowed KM per month (average)
- Open HACS in Home Assistant
- "Integrations" โ โฎ โ "Custom Repositories"
- Add repository:
- URL:
https://github.com/foxxxhater/leasing-tracker - Category: "Integration"
- URL:
- Search for "Leasing Tracker" and install
- Restart Home Assistant
- Add integration via UI
- Download the latest version: Releases
- Extract the archive
- Copy the
leasing_trackerfolder tocustom_components/ - Restart Home Assistant
- Add integration via UI
(If no entity from your car is available)
Add to configuration.yaml:
input_number:
car_mileage:
name: "Car Mileage"
min: 0
max: 500000
step: 1
unit_of_measurement: "km"
icon: mdi:counter- Settings โ Devices & Services
- + Add Integration
- Search: "Leasing Tracker"
- Fill out the form:
- Name (e.g. "BMW 3 Series Leasing")
- Mileage sensor
- Start/end date
- Starting KM
- Allowed KM/year
All sensors are created automatically and update whenever the mileage changes.
type: entities
title: ๐ My Leasing
entities:
- sensor.bmw_3er_status
- sensor.bmw_3er_verbleibende_km_monat
- sensor.bmw_3er_verbleibende_km_jahr
- sensor.bmw_3er_km_differenz_zum_plan
- sensor.bmw_3er_gefahrene_kmNotification when mileage is too high:
automation:
- alias: "Leasing Warning"
trigger:
platform: numeric_state
entity_id: sensor.bmw_3er_km_differenz_zum_plan
above: 500
action:
service: notify.mobile_app
data:
title: "โ ๏ธ Leasing Warning"
message: "You are {{ states('sensor.bmw_3er_km_differenz_zum_plan') }} km over the plan!"โ Create an issue
Contributions are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see LICENSE for details.
- ๐ Issues
- ๐ก Discussions
- ๐ Home Assistant Community Forum
If this integration helps you, feel free to give the project a star! โญ
Developed with โค๏ธ for the Home Assistant Community
P.S. with kind support from Claude