Analysis updated 2026-05-18
Automatically photograph your gas meter every 10 minutes and log the reading to Home Assistant without manual input.
Train a custom digit-recognition model on photos of your own meter when the bundled model does not match your display.
Automatically submit monthly gas meter readings to Gas Networks Ireland's online form using the included script.
| cian911/smart-gas-meter | 1ncendium/aibuster | aaronmayeux/ha-hurricane-tracker | |
|---|---|---|---|
| Stars | 5 | 5 | 5 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | easy |
| Complexity | 4/5 | 3/5 | 2/5 |
| Audience | developer | ops devops | general |
Figures from each repo's GitHub metadata at analysis time.
Requires a Raspberry Pi 4 and Camera Module 3, retraining for your own meter needs a machine with a GPU.
smart-gas-meter is a Python project that automates the reading of a physical gas meter using a Raspberry Pi and a camera. Every 10 minutes the Pi takes a photo of the meter's LCD display. A computer vision model then identifies and reads the digits from the photo, reconstructs the full meter reading, and sends it to Home Assistant (a popular home automation platform). There is also an optional script that submits readings directly to Gas Networks Ireland's website. The digit-recognition model is a fine-tuned version of YOLOv8n, a compact object-detection model. It was trained on over 3,000 meter photos and achieves near-perfect accuracy. Because it detects and locates digits anywhere in the image rather than looking in fixed positions, it handles small shifts in the camera's position automatically without needing recalibration each time. A pre-trained model is included in the repository so you can start testing with photos immediately. If your meter looks different from the one used in training, the repository includes all the scripts needed to build your own labeled dataset and retrain the model. You calibrate a region of interest by drawing a box around the display, label a batch of photos by typing the reading you see, convert those labels into the training format, and retrain. Fine-tuning takes roughly an hour on a laptop with a GPU. The trained model is then exported to ONNX format (a lightweight format that works without the full PyTorch library) for deployment on the Pi. Home Assistant integration creates a sensor called sensor.gas_meter that appears as a gas consumption source in the Energy dashboard. The Gas Networks Ireland submission script handles the multi-step web form process automatically, including fetching a one-time security token before posting the reading. The repository does not specify a license.
A Raspberry Pi pipeline that photographs your gas meter every 10 minutes, reads the digits with a YOLOv8 AI model, and reports readings to Home Assistant or submits them to Gas Networks Ireland.
Mainly Python. The stack also includes Python, YOLOv8, ONNX Runtime.
No license information is provided in the README.
Setup difficulty is rated hard, with roughly 1day+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.