Turn a percentage level sensor into remaining and available volume for a tank of known capacity.
A percentage level reading is hard to act on for rainwater, heating oil, or other storage tanks. This integration converts a percent sensor and configured usable capacity into liters.
- Remaining volume in liters.
- Empty capacity in liters.
- Reported tank level percentage.
This assumes the selected source is already a 0–100% level measurement. It does not infer tank shape or convert distance readings.
- In Home Assistant, open HACS → Integrations.
- Add
https://github.com/CodeArcade-ctrl/tank-level-volumeas a custom repository of type Integration. - Install Tank Level Volume and restart Home Assistant.
- Open Settings → Devices & services → Add integration and select Tank Level Volume.
The catalog request is pending review. Until it is accepted, users must add this repository as a custom repository.
All calculations run locally in Home Assistant. The integration reads only the selected entities and makes no external network requests. Inputs must have valid numeric states; derived values are unavailable while source values are unknown or invalid.
MIT. See LICENSE.