A single-reservoir dashboard card for total stored rainwater, usable reserve, remaining capacity, daily change, and volume history.
- One required total-volume entity
- Capacity-derived fill percentage and visual tank level
- Configurable protected reserve
- Available water and remaining headroom
- 24-hour volume change
- Home Assistant history over 1–30 days
- Native Home Assistant visual configuration
- Responsive light and dark themes
- HACS-compatible packaging
type: custom:rainwater-card
title: Rainwater
entity: sensor.watertankhub_total_water_volume_l
capacity: 48000
reserve: 5000
history_days: 7
show_history: trueOnly entity is required. capacity and reserve are numeric values in
litres, not additional entities.
npm install
npm run devRun all tests and build the production bundle:
npm run checkThe bundle is emitted to dist/rainwater-card.js.
- Copy
dist/rainwater-card.jsto<config>/www/rainwater-card.js. - Add
/local/rainwater-card.jsas a JavaScript module dashboard resource. - Add Rainwater Card from Home Assistant's card picker.
The total-volume sensor may report L, kL, m³, US gallons, or imperial
gallons. Values are normalized internally to litres.