Spritmonitor Vehicle Data Integration!

Hey everyone,

I’m excited to share a new custom component I’ve developed for Home Assistant: Spritmonitor Vehicle Data Integration!

If you use Spritmonitor.de to track your vehicle’s fuel consumption, costs, and service records, this integration is for you. It brings all that valuable data directly into Home Assistant, allowing you to monitor your vehicle’s stats alongside your other smart home devices.

What it does:

This component creates various sensors in Home Assistant for your vehicle data from Spritmonitor, including:

  • Vehicle Info: Make, model, license plate, tank capacity.
  • Fuel & Consumption: Total distance, total fuel consumed, average consumption (km/L), and detailed data from your last refueling (date, quantity, total cost in UYU, price per liter, odometer, trip, consumption).
  • Maintenance Reminders: Next service mileage, date, and any notes.
  • Estimates: Estimated current fuel level and remaining range.
  • Spritmonitor Ranking: Your vehicle’s rank and average consumption compared to others on Spritmonitor.

Installation:

The easiest way to install is via HACS (Home Assistant Community Store):

  1. Open HACS → Integrations.
  2. Click the “…” (top right) → “Custom repositories”.
  3. Add https://github.com/matbott/home_assistant_Spritmonitor with category “Integration”.
  4. Search for “Spritmonitor” in HACS and install.
  5. Restart Home Assistant.

Configuration:

After restarting HA, go to “Settings” → “Devices & Services” → “Add Integration”, search for “Spritmonitor”, and enter your Spritmonitor Vehicle ID, Application-ID, and Bearer Token (you’ll need to obtain these from Spritmonitor’s API).

Repository: You can find the full code and detailed installation instructions on my GitHub: GitHub - matbott/home_assistant_Spritmonitor: Custom component for Home Assistant the Spritmonitor

Feel free to try it out and let me know if you have any feedback, suggestions, or encounter any issues!

Thanks,

New version with more sensors, I’m working on the translations.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

1 Like

Nice that you created a Integration for this.

Based on the discussion with spritmonitor.de while im created the Rest Sensor they wish that not everyone request the App-Token individually instead everyone should use the already published one.

@Spritmonitor: Maybe you can reply here how to proceed.

APP_TOKEN
Spritmonitor assigned meanwhile an dedicated APP-Token, so you can use it directly. No individual request needed anymore.
App-Token: 190e3b1080a39777f369a4e9875df3d7

1 Like

Hi, thanks for the comment. I’m actually using the public token I found in your post. But during the integration, the startup form requests both the application token and the user-generated one. In any case, I’m waiting for @Spritmonitor response.

Usually you don’t need to contact the Team “spritmonitor.de”, the App-Token is public and the Bearer you can create by your own within your account.

How to:
Log in to your account / (or go to “your account”) → Click on “Change Password” → and below you should see the option “create new token”
This will be your Bearer Token. :slight_smile:

Yes, thank you. That’s what I did following your post. The integration currently generates the sensors in Spanish; I’m working on the translations. Regards

Hello @matbott

please use this token for your script: 095369dede84c55797c22d4854ca6efe

Thank you,
Team Spritmonitor

1 Like

Thanks @spritmonitor, I’ve documented the token in the integration readme.
I’d like to let you know that version 1.3.0 is now available with the sensors in English for greater language versatility. I’ll have to see if I have time to dedicate to the translations. I also fixed a next service date sensor that was giving me an error. Regards.

Open your Home Assistant instance and show an integration.

Great, thank you! Perhaps you could also hard code the app token into the script and don’t have the users enter it. I think this would make the configuration even easier and the app token will never change in the future.

Best regards
Team Spritmonitor

1 Like

Ok, I’ll take your suggestion, take advantage and ask you, how long do you think I can refresh the API without affecting them? @Spritmonitor

New Release
v1.5.0

I think a refresh cycle of 1 or 2 hours should be ok.

Thank you. I implemented a new form where the token is pre-filled, but I allow the option to change it, and a refresh time range of 1 to 24 hours. Thanks for the response. @Spritmonitor

1 Like

Great, good work :slight_smile:

1 Like

New version! 2.0.0🟢

Includes interface improvements and translations into English, Spanish, and Latin American languages.
Icon in progress!

Open in HACS