Image to Sensor CV: Analog gauge reader

Hey HA community,

In my house I do have couple of analog gauges: measuring pressure in heating system, overall water pressure, and abit ancient gas heater which is not “smart”.

Quite often I’m not there, but supervision is required for the heating system.
It also had problem with heating system pressure, which if goes down may cause critical failure in heater and in pumps.

I did the monitoring manually, through IP camera, and then got an idea to automate analog gauges readings into the sensors of HA.

So thats my draft:

Its very raw, but works for me.

This is how my gauges looks like:

And this is needle recognition with value conversion:
heat_pressure_processor_0_overlay_gauge_detection

Any interest, comments - welcome.

This is great and exactly what I’m after to read a domestic water heater pressure gauge.

I’ve installed this and set the image path to a snapshot of the gauge which refreshes every 30 mins (saved to config/www/gauge.jpg)

This is probably a question with an obvious answer but… where in HA can I view the digitised reading? Do I need to create a helper or entity?

Thank you :slight_smile:

How do you find your image crop and position value easilly?

Hi @irusskih,
just want to thank you, I was searching for something exactly like your solution, since I need to investigate my changing heating system’s water pressure. it’s working perfect!

@s-bed I did it this way: Copied the image from camera preview in Browser, pasted it in IrfanView, selected the area of interest by mouse and read the coordinates and width/hight from title bar of window. Worked instantly.

BR
Sven