Authorization notice. Vision State is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA household that wants its water or gas use tracked automatically without a smart meter.
The problemMechanical meters have to be read by hand, and the readings are not logged anywhere.
The outcomeA meter counter that only goes up, checked before it is published, and shown in the Energy dashboard with an optional rate in m³/h or kW.
What you need first
- Home Assistant OS or Home Assistant Supervised, version 2025.10 or newer
- The Mosquitto broker app and the MQTT integration in Home Assistant
- A camera that Home Assistant can see as a camera entity, or an RTSP or HTTP snapshot URL
Steps
- Install the Vision State app from the repository and open it from the sidebar.
- Mount an ESP32-CAM or any camera above the meter, then add it to Home Assistant with ESPHome or use its snapshot URL.
- Choose New sensor, select the camera, and draw a box around the meter digits or the rolling wheels.
- Choose the reading type for a mechanical water or gas meter, or for an LCD or LED power meter.
- Open the Energy dashboard in Home Assistant and add the new meter total.
Prompt for your agent
Using the VisionState repo at https://github.com/oleost/VisionState, configure a reading sensor for the camera <camera_entity> on a <water or gas or power> meter. Expected output: a meter total entity that appears in the Home Assistant Energy dashboard. Verify that each new value is higher than or equal to the previous one.
Caveat. The README gives no accuracy figures for meter reading, so compare the first few values against the physical meter before you rely on them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for oleost/VisionState and "Read a water or gas meter into the Energy dashboard"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer