Hi everyone! ![]()
I’d like to share a project I’ve been working on – a smart beer keg scale built with ESP32 and ESPHome, integrated into Home Assistant.
Beer Keg Scale
A DIY scale that sits under your keg in the fridge and tells you exactly how much beer is left – in kg and number of remaining half-pints.
Features
- 4× load cells (HX711 24-bit ADC) with median + EMA filtering for stable readings
- OLED display (SH1106 128×64) showing beer content in kg and beer count in real time
- Two-step calibration (A: store zero / B: calculate scale) with persistent flash storage – survives restarts
- Full Home Assistant integration via ESPHome API – sensors, controls, automations
- Web interface on port 80
- OTA firmware updates
- Offline mode – works without Wi-Fi or HA
- Automatic beer count (1 beer = 0.505 kg half-liter)
- Adjustable empty keg offset with quick buttons for 10 / 15 / 30 / 50 L kegs
Hardware
| Component | Spec | Qty |
|---|---|---|
| ESP32 DevKit v1 | 38-pin | 1× |
| HX711 | 24-bit ADC | 4× |
| Load cell | 20 kg bar type | 4× |
| OLED | SH1106 128×64 I2C | 1× |
Total cost: ~$30 USD
Home Assistant Dashboard
The included HA-Dashboard.yaml uses Mushroom cards and shows beer content, beer count, keg offset slider, and quick-set buttons for common keg sizes.
GitHub
Full documentation, wiring diagrams, ESPHome config, and HA dashboard card:
GitHub - Samot89/Beer-Keg-Scale: Smart ESP32-based scale for real-time beer keg monitoring with Home Assistant integration, OLED display, and two-step calibration. · GitHub
Happy to answer any questions or hear your suggestions! ![]()



