(Link to German version: Deutsch)
Version: 0.3.0 - What is NEW in this version → Changelog
Description: A Home Assistant custom card to visualize tank fill levels, total capacity, and consumption using either consumption sensors or fill level sensors.
Ideal for heating oil, water, diesel, gas, pellets, wood chips, or other bulk materials.
Note:
Fill levels are calculated consistently based on the configured sensor mode:
- Consumption sensor:
initial_fill - consumption- Fill level sensor (L / kg / m³): absolute value
- Fill level sensor (%): percentage of
initial_fillUnits and display behavior are fully configurable.
- What does this card do?
- License
- Screenshot
- Features
- Installation
- Example Configuration
- All Configuration Options
- Functionality
- Developer Notes
Depending on configuration, this custom card displays:
- One or multiple tanks with individual names
- Current fill level per tank
- System-wide fill level in absolute values and percent
- Total capacity and calculated consumption
- Support for liquids and bulk materials (e.g. pellets, wood chips)
- Color- and pattern-based fill visualization by material type
- Responsive layout for desktop and mobile dashboards
Creative Commons – CC BY-NC-SA 4.0
- Editing and modification allowed
- Non-commercial use only
- Share adaptations under the same license
- Visual representation of one or more tanks
- Fill level displayed per tank and system-wide
- Material-specific colors and patterns
- Heating oil
- Water
- Diesel
- Gas
- Pellets (<-NEW)
- Wood chips (<-NEW)
- Custom colors
- Liters (
L) - Kilograms (
kg) - Cubic meters (
m³)
- Consumption sensor
- Fill level sensor (absolute value)
- Fill level sensor (percentage)
- Sensor mode selectable via visual editor or YAML
- Integrated Home Assistant visual editor (
ha-form) - Dynamic schema based on selected sensor mode
- Adjustable tank shapes (rectangle, capsule, pool)
- Show or hide values per tank
- Configurable background and styling
- Responsive layout
Installation over HACS
- Download tanks-card.js
- Copy it to
/config/www/community/tank-card/ - In Home Assistant:
- Settings
- Dashboards
- Three-dot menu
- Resources
- Add Resource
- URL: /local/community/tank-card/tank-card.js
Type: JavaScript Module
- Reload browser (CTRL + F5)
The card is now selectable and visible in the GUI.
type: custom:tank-card
title: Tank Card
tank_count: 3
tank_capacity: 1500
initial_fill: 4500
sensor_mode: consumption
consumption_sensor: sensor.heating_oil_consumption_total
level_sensor: ""
content_type: heating_oil
unit: L
tank_form: rect
bg_color: 'rgba(0,0,0,0.4)'
show_unittank: true
entities:
- name: Tank 1
- name: Tank 2
- name: Tank 3| Option | Default | Type | Description |
|---|---|---|---|
type |
'custom:tank-card' |
string | Card type |
title |
'Tank Card' |
string | Card title |
tank_count |
3 |
number | Number of tanks |
tank_capacity |
1500 |
number | Capacity per tank (L / kg / m³) |
initial_fill |
tank_count * tank_capacity |
number | Initial system fill |
sensor_mode |
'consumption' |
string | Sensor mode: consumption, fill_level_l, fill_level_percent |
consumption_sensor |
'' |
string | Consumption sensor (only if sensor_mode: consumption) |
level_sensor |
'' |
string | Fill level sensor (only if sensor_mode: fill_level_l or fill_level_percent) |
unit |
'L' |
string | Unit: L, kg, m3 |
tank_form |
'rect' |
string | Tank shape: rect, capsule, pool |
bg_color |
'rgba(0,0,0,0.3)' |
string | Card background color |
show_unittank |
true |
boolean | Show value per tank (L / kg / m³) |
content_type |
'heating_oil' |
string | Material type: heating_oil, water, diesel, gas, pellets, wood_chips, colors |
entities |
[] |
list | List of tanks with name field, e.g. [ {name: "Tank 1"}, {name: "Tank 2"} ] |
Calculates the current system fill based on selected sensor mode
Determines consumption relative to initial_fill
Distributes the fill evenly across all tanks
Visualizes fill level via height, color, and pattern
If you like this integration and it adds real value to your Home Assistant setup,
I’d appreciate a small donation — every contribution helps further development 🚀
⚡ Lightning Address:
usefulplay52@walletofsatoshi.com
or:
Thank you very much, and please leave a free
so others can find this project too — thanks!
Compatible with Home Assistant visual editor and YAML editor
Frontend-only custom card, no backend integration required
Version: 0.3.0 – Neu in dieser Version → Changelog
Eine Home-Assistant-Custom-Card zur Visualisierung von Tankfüllständen, Gesamtkapazität und Verbrauch.
Es können sowohl Verbrauchssensoren als auch Füllstandssensoren (absolut oder prozentual) verwendet werden.
Geeignet für Heizöl, Wasser, Diesel, Gas, Pellets, Hackschnitzel und andere Flüssigkeiten oder Schüttgüter.
Hinweis:
Die Füllstandsberechnung erfolgt abhängig vom gewählten Sensormodus:
- Verbrauchssensor:
initial_fill - consumption- Füllstandssensor (L / kg / m³): absoluter Wert
- Füllstandssensor (%): Prozentwert bezogen auf
initial_fillEinheit und Anzeigeverhalten sind vollständig konfigurierbar.
- Was macht diese Karte?
- Lizenz
- Screenshot
- Features
- Installation
- Beispiel-Konfiguration
- Alle Konfigurationsoptionen
- Funktionsweise
- Entwicklerhinweise
Abhängig von der Konfiguration zeigt diese Custom Card:
- Einen oder mehrere Tanks mit individuellen Namen
- Aktuellen Füllstand pro Tank
- Gesamtsystem-Füllstand absolut und in Prozent
- Gesamtkapazität und berechneten Verbrauch
- Unterstützung für Flüssigkeiten und Schüttgüter (z. B. Pellets, Hackschnitzel)
- Farb- und musterbasierte Füllstandsdarstellung je Material
- Responsives Layout für Desktop- und Mobile-Dashboards
Creative Commons – CC BY-NC-SA 4.0
- Bearbeiten und Anpassen erlaubt
- Keine kommerzielle Nutzung
- Weitergabe nur unter gleicher Lizenz
- Grafische Darstellung eines oder mehrerer Tanks
- Füllstand pro Tank
- Materialabhängige Farben und Muster
- Heizöl
- Wasser
- Diesel
- Gas
- Pellets
- Hackschnitzel
- Benutzerdefinierte Farben
- Liter (
L) - Kilogramm (
kg) - Kubikmeter (
m³)
- Verbrauchssensor
- Füllstandssensor (absoluter Wert)
- Füllstandssensor (Prozent)
- Sensormodus wählbar über visuellen Editor oder YAML
- Integrierter Home-Assistant-Editor (
ha-form) - Dynamisches Schema abhängig vom Sensormodus
- Verschiedene Tankformen (Rechteck, Kapsel, Pool)
- Anzeige von Werten pro Tank ein-/ausblendbar
- Konfigurierbarer Hintergrund und Styling
- Responsives Layout
Installation über HACS
- Datei tanks-card.js herunterladen
- In
/config/www/community/tank-card/kopieren - In Home Assistant:
- Einstellungen
- Dashboards
- Drei Punkte
- Ressourcen
- Ressource hinzufügen
- URL: /local/community/tank-card/tanks-card.js
Typ: JavaScript-Modul
- Browser neu laden (STRG + F5)
Danach ist die Karte in der GUI verfügbar und auswählbar.
type: custom:tank-card
title: Tank Card
tank_count: 3
tank_capacity: 1500
initial_fill: 4500
sensor_mode: consumption
consumption_sensor: sensor.heating_oil_consumption_total
level_sensor: ""
content_type: heating_oil
unit: L
tank_form: rect
bg_color: 'rgba(0,0,0,0.4)'
show_unittank: true
entities:
- name: Tank 1
- name: Tank 2
- name: Tank 3| Option | Default | Typ | Beschreibung |
|---|---|---|---|
type |
'custom:tank-card' |
string | Kartentyp |
title |
'Tank Card' |
string | Titel der Karte |
tank_count |
3 |
number | Anzahl der Tanks |
tank_capacity |
1500 |
number | Kapazität pro Tank (L / kg / m³) |
initial_fill |
tank_count * tank_capacity |
number | Startfüllung des Systems |
sensor_mode |
'consumption' |
string | Sensormodus: consumption, fill_level_l, fill_level_percent |
consumption_sensor |
'' |
string | Verbrauchssensor (nur wenn sensor_mode: consumption) |
level_sensor |
'' |
string | Füllstandsensor (nur wenn sensor_mode: fill_level_l oder fill_level_percent) |
unit |
'L' |
string | Einheit: L, kg, m3 |
tank_form |
'rect' |
string | Tankform: rect, capsule, pool |
bg_color |
'rgba(0,0,0,0.3)' |
string | Hintergrundfarbe der Karte |
show_unittank |
true |
boolean | Liter/Kg/m³ im Tank anzeigen |
content_type |
'heating_oil' |
string | Materialtyp: heating_oil, water, diesel, gas, pellets, wood_chips, Farben |
entities |
[] |
list | Liste der Tanks mit name-Feld, z.B. [ {name: "Tank 1"}, {name: "Tank 2"} ] |
Berechnet den aktuellen Systemfüllstand abhängig vom Sensormodus Ermittelt den Verbrauch relativ zu initial_fill Verteilt den Füllstand gleichmäßig auf alle Tanks Visualisiert den Füllstand über Höhe, Farbe und Muster
Wenn dir diese Integration gefällt und sie einen echten Mehrwert für dein Home Assistant Setup bietet,
freue ich mich über eine kleine Unterstützung — jede Spende hilft, das Projekt weiterzuentwickeln 🚀
⚡ Lightning Adresse:
usefulplay52@walletofsatoshi.com
oder:
Vielen Dank ,und gebt mir einen kostenlosen , dann finden andere auch den Weg hierher - Danke!
Home-Assistant-visuellem Editor und YAML-Editor Reine Frontend-Custom-Card
