{"id":8469,"date":"2025-10-30T11:41:22","date_gmt":"2025-10-30T11:41:22","guid":{"rendered":"https:\/\/www.chatteris.biz\/blog\/?p=8469"},"modified":"2026-02-18T09:21:32","modified_gmt":"2026-02-18T09:21:32","slug":"installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant","status":"publish","type":"post","link":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/","title":{"rendered":"Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant"},"content":{"rendered":"\n<p><em>Updated 17 February 2026<\/em><\/p>\n\n\n\n<p><a href=\"#HA-interface\">Jump to Home Assistant Details<\/a><\/p>\n\n\n\n<p>This blog covers the installation of a sub meter between the house and Anglian Waters boundary meter, the blog on locating this pipe can be found <a href=\"https:\/\/www.chatteris.biz\/blog\/tracing-a-buried-plastic-water-pipe\/\">HERE<\/a>.<\/p>\n\n\n\n<p>The primary reason I want to monitor my water consumption in real time, is that Anglian Water supplied smart meter can&#8217;t do this as the App is typically 24 hours behind, a secondary reason is that I can take the opportunity to add an automatic shut-off valve linked to Home Assistant, so should a leak detector activate in the kitchen, the water supply to the house will close and also an alert will be sent to my mobile.<\/p>\n\n\n\n<p>The equipment will be installed a standard size irrigation valve box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"541\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png\" alt=\"valve box\" class=\"wp-image-8476\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png 797w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1-300x204.png 300w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1-768x521.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/figure>\n<\/div>\n\n\n<p>The original idea was to install the valve box as near to the house as I could in order to reduce cabling and ensure a decent Wi-Fi signal gets to the control system, this idea failed when it was discovered that the water pipe near the house id over 1.5m deep.<\/p>\n\n\n\n<p>The next best option was to place the valve box in the hole I&#8217;ve already dug near the boundary meter which was used to trace the pipe.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1295-Medium.jpeg\" alt=\"boundary dig\" class=\"wp-image-8477\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1295-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1295-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>This plan was to install the meter and valve inline with the pipe with the valve box sitting over the top of the kit, impinging slightly into the lawn.<\/p>\n\n\n\n<p>This came to a halt when I uncovered an Openreach duct under my lawn with the water pipe passing under it, so the only option left to me was to put the valve box just past the blue flag in the lawn marked in blue.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1344-Medium.jpeg\" alt=\"marked hole\" class=\"wp-image-8484\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1344-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1344-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>The dig went quite well, I was aware of the garden irrigation pipes which pass to the right side of the dig and also in front of the box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1345-Medium.jpeg\" alt=\"first hole\" class=\"wp-image-8485\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1345-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1345-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Typical with this project, I discovered the expected water pipe, but also the gas pipe and further down, the electrical duct to the house, all basically touching each other and off-center in relation to the valve box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1353-Medium.jpeg\" alt=\"dug before box\" class=\"wp-image-8486\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1353-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1353-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Due to the lay of the pipes I moved the valve box dig slightly to the left, this meant I needed to reposition the inlet and outlet water pipes.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1354-Medium.jpeg\" alt=\"zoom hole\" class=\"wp-image-8487\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1354-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1354-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>To compound the issue, the water pipe feeding my property is underneath the gas pipe, the close up on the above finished dig showing the irrigation pipe with marker tape, below this are the gas and water pipes.<\/p>\n\n\n\n<p>I dug further back to give me better access to the water pipe, also the length will give me additional flexibility, the plan is to cut the water pipe and get it from under the gas pipe so it will enter the valve box in the correct position, also the existing pipe to the boundary meter will be removed at the slip coupling and rerouted to the left of the existing position, again to get the pipe central in the valve box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1358-Medium.jpeg\" alt=\"box start\" class=\"wp-image-8490\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1358-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1358-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Valve box in temporary position after water connections made, the water connection turned into a problem for me as the pipe from the boundary meter under the grass to the new hole had been compressed and deformed to an oval shape by the Openreach Duct pressing down on it, with a stone beneath the pipe, a perfect storm.<\/p>\n\n\n\n<p>The meant that I had to hammer the pipe through the soil from the slip coupling, only to find that I needed 1m of 25mm pipe to replace the damaged section, fortunately <a href=\"https:\/\/www.taymorplumbingsupplies.co.uk\/\">Taymor Plumbing Merchants<\/a> at March were brilliant and cut me a piece for free, I did go back with chocolates and a Thank You card as they got me out of a right pickle.<\/p>\n\n\n\n<p>The 25mm flexible conduit is to carry 12v power to the ESP32 which controls and reads the valve and meter respectively.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1359-Medium.jpeg\" alt=\"valve box top\" class=\"wp-image-8492\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1359-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1359-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>New pipe from slip coupling to sub meter via protective sleeve, exit pipe from the auto-valve to the house no longer under the gas pipe, making for a tidier install.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1366-Medium.jpeg\" alt=\"meter in place\" class=\"wp-image-8493\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1366-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1366-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Valve box fixed in place with pea gravel and leveled to the grass, water pipes covered in builders and sharp sand to protect them and the longer section of exposed pipe to the house had pipe insulation fitted before being covered.<\/p>\n\n\n\n<p>As I have pipe &#8216;fixed points&#8217;, the water meter is on flanged couplings allowing easy removal, I have also used a brass male to male cone seat union on the auto-valve, again to allow easy removal and replacement when required.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1363-Medium.jpeg\" alt=\"box lid\" class=\"wp-image-8494\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1363-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1363-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Grass and border restored to make the job look a lot neater, once everything starts to grow, the box lid will melt into the lawn.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1365-Medium.jpeg\" alt=\"conduit\" class=\"wp-image-8495\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1365-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1365-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>25mm Flexible conduit being installed back to the garage, the conduit has a marker tape over it and a shallow covering of sharp sand, due to concrete haunching supporting the round nose edging, the conduit is quite shallow, but I I wont be aerating the lawn this close to the edge, so it will be fine.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1386-Medium.jpeg\" alt=\"conduit going in\" class=\"wp-image-8507\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1386-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1386-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>As it had been raining recently, the grass sods were easy to cut and lift out.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1395-Medium.jpeg\" alt=\"lawn edge\" class=\"wp-image-8509\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1395-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1395-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Conduit under the edging ready to drop in a trench in the drive which is yet to be dug, the last sod of lawn is next to go back and levelled down with the back of a spade, after that a mix of sieved soil mixed with lawn seed will be spread down the cuts and joints of the lawn where I have worked.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1421-Medium.jpeg\" alt=\"finished conduit\" class=\"wp-image-8520\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1421-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1421-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Flexible conduit all installed and draw cord in place ready to pull in 1.5mm<sup>2<\/sup> two core cable for the 12v DC power to the ESP32.<\/p>\n\n\n\n<p>In the meter pit I have installed an cover for the equipment in the valve box using 50mm Kingspan insulation.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" data-id=\"8529\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1661-Medium.jpeg\" alt=\"insulation 1\" class=\"wp-image-8529\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1661-Medium.jpeg 1024w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1661-Medium-300x225.jpeg 300w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1661-Medium-768x576.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" data-id=\"8528\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1662-Medium.jpeg\" alt=\"insulation 2\" class=\"wp-image-8528\" style=\"width:366px;height:auto\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1662-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1662-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"HA-interface\">Home Assistant interface, equipment  and wiring<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>Working from the <a href=\"https:\/\/www.chatteris.biz\/blog\/water-meter-replacement\/\">boundary water meter<\/a> owned by Anglian Water, the connection was made in 25mm MDPE to my sub-meter which is a BM Meters model <a href=\"https:\/\/bmetersuk.com\/products\/gmdmi-water-meter\/\">GMDM-I <\/a> with a <a href=\"https:\/\/bmetersuk.com\/products\/iwm-pl3\/\">IWM-PL3<\/a> pulse emitter fixed to it and configured to register 1 pulse every 10 litres, both of these were bought from <a href=\"https:\/\/stockshed.com\/collections\/multi-jet-cold-water-meters-mid-wras-approved\/products\/3-4-bsp-20mm-bmeters-gmdm-i-multi-jet-cold-water-meter\">stockshed<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"288\" data-id=\"8530\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/GMDM-1.jpg\" alt=\"water sub-meter\" class=\"wp-image-8530\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/GMDM-1.jpg 369w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/GMDM-1-300x234.jpg 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"441\" data-id=\"8531\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IWM-PL3.jpg\" alt=\"pulse counter\" class=\"wp-image-8531\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IWM-PL3.jpg 473w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IWM-PL3-300x280.jpg 300w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>After the sub-meter is the automatic isolation valve, this is a &#8216;full bore&#8217; valve so as not to reduce the water pressure to the house, (both the sub-meter and valve are 3\/4&#8243;).<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>The automatic valve was bought from <a href=\"https:\/\/www.solenoid-valve.world\/abvm06s\">solenoid valve world<\/a>, I opted for a version that monitored if the valve was open or closed and had the ability to be manually fixed open.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"141\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/valve.jpg\" alt=\"auto valve\" class=\"wp-image-8532\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/valve.jpg 552w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/valve-300x77.jpg 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n<\/div>\n\n\n<p>The valve operates on  9 to 24v, in my setup I&#8217;m using a 12v DC power source.  My configuration is 12v permanently available to the valve and to close the valve, a switched12v hold open positive is removed, to open the valve, a 12v positive is reapplied to the control input.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1674-Medium.jpeg\" alt=\"12v\" class=\"wp-image-8535\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1674-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1674-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>12v DC to the ESP32 and valve are via a separate fuse from my home alarm system power supply as this is battery backed up.<\/p>\n\n\n\n<p>The valves position and operating commands are via an ESP32 connected to my Home Assistant dashboard by WiFi.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"408\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/HA-dashboard-1.jpg\" alt=\"dashboard\" class=\"wp-image-8564\"\/><\/figure>\n<\/div>\n\n\n<p>To enable future maintenance when dealing with two fixed pipe points, I used a <a href=\"https:\/\/www.plumbingsuperstore.co.uk\/product\/brass-union-male-x-female-ends-34-inch.html\">3\/4&#8243; male x female brass union end<\/a> on the auto valve, this means I can easily remove\/replace, either the meter or valve should the need arise.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"187\" height=\"185\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/TB76-34.jpg\" alt=\"TB76 34\" class=\"wp-image-8534\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">ESP32 Controller<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1711-Medium.jpeg\" alt=\"completed controller\" class=\"wp-image-8545\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1711-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1711-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>The above picture shows the completed controller boxed inside an IP68 rated enclosure, all cables pass through compression glands in a hope to reduce moisture ingress.<\/p>\n\n\n\n<p>The QR code is linked to my &#8216;Home Manual&#8217; on my local NAS, this enables rapid access to anything related to this project.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" data-id=\"8539\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1014-Medium.jpeg\" alt=\"esp1\" class=\"wp-image-8539\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1014-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1014-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" data-id=\"8538\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1016-Medium.jpeg\" alt=\"esp1\" class=\"wp-image-8538\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1016-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1016-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>The ESP32 is the brains of the project, performing monitoring and control the following information to Home Assistant:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Auto-Valve position<\/li>\n\n\n\n<li>External Temperature<\/li>\n\n\n\n<li>Meter\/Valve chamber &#8211; Dry or Wet<\/li>\n\n\n\n<li>Remote override enable (to prevent any automations closing the valve)<\/li>\n\n\n\n<li>&#8216;Heartbeat&#8217; (power and WiFi connection are ok)<\/li>\n<\/ul>\n\n\n\n<p>The first version of the controller was within a smaller IP rated enclosure, with field cable terminations made directly to the terminal blocks, however, the practicalities of doing this meant that it would be very difficult to easily remove the controller if maintenance was needed, therefore, version two used a larger IP enclosure and external terminals.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1693-Medium.jpeg\" alt=\"loomed controller\" class=\"wp-image-8569\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1693-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1693-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>For ease, I simply soldered cables to the underside of the existing terminals and loomed the cables to DIN rail mounted terminals.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"768\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1706-Medium.jpeg\" alt=\"Under test\" class=\"wp-image-8548\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1706-Medium.jpeg 576w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/IMG_1706-Medium-225x300.jpeg 225w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n<\/div>\n\n\n<p>Completed controller within enclosure undergoing testing, the temperature probe for the chamber is fixed to the enclosure, to the right of this is the moisture detector secured inside a plastic cup.<\/p>\n\n\n\n<p>The mouth of the cup will sit on the gravel base of the chamber with the height of the sensor set below the automatic valves motor and electronics, an alert is sent to my phone if moisture is detected.<\/p>\n\n\n\n<p>The following files are of the wiring and code used:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/cold-water-meter-17-Feb-26-for-release.txt\" type=\"link\" id=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/cold-water-meter-17-Feb-26-for-release.txt\">YAML Code<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-schematic-800x600-1.jpg\" type=\"link\" id=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-In-Medium.jpg\">Schematic<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-terminal-wiring-Medium.jpg\" type=\"link\" id=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-terminal-wiring-Medium.jpg\">Terminations<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-inc-lid-Medium.jpg\" type=\"link\" id=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2026\/02\/Esp32-Cold-Water-Main-inc-lid-Medium.jpg\">Outline Drawing<\/a><\/li>\n<\/ul>\n\n\n\n<p>I&#8217;ve only got a small amount of tweaking left to do, but essentially the project is finally finished as information and control is flowing to Home Assistant.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"529\" src=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-2.png\" alt=\"\" class=\"wp-image-8558\" srcset=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-2.png 616w, https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-2-300x258.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n<\/div>\n\n\n<p>One of things to resolve is getting the Total Consumption value to align with the boundary meters reading, although not absolutely necessary, it would be a nice to have.<\/p>\n\n\n\n<p>After a few months in use, I noticed when the chamber started to fill with rain water and the water sensor operated, the indication to Home Assistant was rapidly turning on and off, to combat this, the YAML code was changed to make the water sensor turn on just before a reading was taken and then off, this also reduces probe corrosion, a futher modification was to add filtering and water detection sensitivity.<\/p>\n\n\n\n<p>I hope you&#8217;ve enjoyed following this, a typical example of what seems a fairly easy job, turning into a bit of a pain with lots of &#8216;re thinks&#8217; along the way \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated 17 February 2026 Jump to Home Assistant Details This blog covers the installation of a sub meter between the house and Anglian Waters boundary meter, the blog on locating this pipe can be found HERE. The primary reason I want to monitor my water consumption in real time, is that Anglian Water supplied smart &hellip; <a href=\"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[337,334],"tags":[579,516,578],"class_list":["post-8469","post","type-post","status-publish","format-standard","hentry","category-diy","category-plumbing-heating","tag-auto-off-valve","tag-home-assistant-leak-detection","tag-water-sub-meter"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog\" \/>\n<meta property=\"og:description\" content=\"Updated 17 February 2026 Jump to Home Assistant Details This blog covers the installation of a sub meter between the house and Anglian Waters boundary meter, the blog on locating this pipe can be found HERE. The primary reason I want to monitor my water consumption in real time, is that Anglian Water supplied smart &hellip; Continue reading Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"My Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/search\/top\/?q=chatterisweather\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/search\/top\/?q=chatterisweather\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-30T11:41:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-18T09:21:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"797\" \/>\n\t<meta property=\"og:image:height\" content=\"541\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@chatterisdotbiz\" \/>\n<meta name=\"twitter:site\" content=\"@chatterisdotbiz\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/\"},\"author\":{\"name\":\"Ian\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#\\\/schema\\\/person\\\/8c24a0b1bf9624c7f930fe2f3a5b5f37\"},\"headline\":\"Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant\",\"datePublished\":\"2025-10-30T11:41:22+00:00\",\"dateModified\":\"2026-02-18T09:21:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/\"},\"wordCount\":1641,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#\\\/schema\\\/person\\\/8c24a0b1bf9624c7f930fe2f3a5b5f37\"},\"image\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image-1.png\",\"keywords\":[\"auto-off valve\",\"home assistant leak detection\",\"water sub meter\"],\"articleSection\":[\"DIY\",\"Plumbing &amp; Heating\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/\",\"url\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/\",\"name\":\"Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image-1.png\",\"datePublished\":\"2025-10-30T11:41:22+00:00\",\"dateModified\":\"2026-02-18T09:21:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image-1.png\",\"contentUrl\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image-1.png\",\"width\":797,\"height\":541,\"caption\":\"valve box\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/\",\"name\":\"My Blog of Stuff\",\"description\":\"A blog about stuff that interests me or I have done.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#\\\/schema\\\/person\\\/8c24a0b1bf9624c7f930fe2f3a5b5f37\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/#\\\/schema\\\/person\\\/8c24a0b1bf9624c7f930fe2f3a5b5f37\",\"name\":\"Ian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/chatteris.jpg\",\"url\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/chatteris.jpg\",\"contentUrl\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/chatteris.jpg\",\"width\":170,\"height\":80,\"caption\":\"Ian\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.chatteris.biz\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/chatteris.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.chatteris.biz\",\"https:\\\/\\\/www.facebook.com\\\/search\\\/top\\\/?q=chatterisweather\",\"https:\\\/\\\/x.com\\\/chatterisdotbiz\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/Chatterisdotbiz\",\"Ian\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/","og_locale":"en_GB","og_type":"article","og_title":"Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog","og_description":"Updated 17 February 2026 Jump to Home Assistant Details This blog covers the installation of a sub meter between the house and Anglian Waters boundary meter, the blog on locating this pipe can be found HERE. The primary reason I want to monitor my water consumption in real time, is that Anglian Water supplied smart &hellip; Continue reading Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant &rarr;","og_url":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/","og_site_name":"My Blog","article_publisher":"https:\/\/www.facebook.com\/search\/top\/?q=chatterisweather","article_author":"https:\/\/www.facebook.com\/search\/top\/?q=chatterisweather","article_published_time":"2025-10-30T11:41:22+00:00","article_modified_time":"2026-02-18T09:21:32+00:00","og_image":[{"width":797,"height":541,"url":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png","type":"image\/png"}],"author":"Ian","twitter_card":"summary_large_image","twitter_creator":"@chatterisdotbiz","twitter_site":"@chatterisdotbiz","twitter_misc":{"Written by":"Ian","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#article","isPartOf":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/"},"author":{"name":"Ian","@id":"https:\/\/www.chatteris.biz\/blog\/#\/schema\/person\/8c24a0b1bf9624c7f930fe2f3a5b5f37"},"headline":"Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant","datePublished":"2025-10-30T11:41:22+00:00","dateModified":"2026-02-18T09:21:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/"},"wordCount":1641,"commentCount":0,"publisher":{"@id":"https:\/\/www.chatteris.biz\/blog\/#\/schema\/person\/8c24a0b1bf9624c7f930fe2f3a5b5f37"},"image":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png","keywords":["auto-off valve","home assistant leak detection","water sub meter"],"articleSection":["DIY","Plumbing &amp; Heating"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/","url":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/","name":"Installing mains water sub-meter and auto-close valve linked to Home Assistant - My Blog","isPartOf":{"@id":"https:\/\/www.chatteris.biz\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#primaryimage"},"image":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png","datePublished":"2025-10-30T11:41:22+00:00","dateModified":"2026-02-18T09:21:32+00:00","breadcrumb":{"@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#primaryimage","url":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png","contentUrl":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2025\/10\/image-1.png","width":797,"height":541,"caption":"valve box"},{"@type":"BreadcrumbList","@id":"https:\/\/www.chatteris.biz\/blog\/installing-mains-water-sub-meter-and-auto-close-valve-linked-to-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.chatteris.biz\/blog\/"},{"@type":"ListItem","position":2,"name":"Installing mains water sub-meter and auto&#8211;close valve linked to Home Assistant"}]},{"@type":"WebSite","@id":"https:\/\/www.chatteris.biz\/blog\/#website","url":"https:\/\/www.chatteris.biz\/blog\/","name":"My Blog of Stuff","description":"A blog about stuff that interests me or I have done.","publisher":{"@id":"https:\/\/www.chatteris.biz\/blog\/#\/schema\/person\/8c24a0b1bf9624c7f930fe2f3a5b5f37"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.chatteris.biz\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.chatteris.biz\/blog\/#\/schema\/person\/8c24a0b1bf9624c7f930fe2f3a5b5f37","name":"Ian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2022\/03\/chatteris.jpg","url":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2022\/03\/chatteris.jpg","contentUrl":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2022\/03\/chatteris.jpg","width":170,"height":80,"caption":"Ian"},"logo":{"@id":"https:\/\/www.chatteris.biz\/blog\/wp-content\/uploads\/2022\/03\/chatteris.jpg"},"sameAs":["https:\/\/www.chatteris.biz","https:\/\/www.facebook.com\/search\/top\/?q=chatterisweather","https:\/\/x.com\/chatterisdotbiz","https:\/\/www.youtube.com\/user\/Chatterisdotbiz","Ian"]}]}},"_links":{"self":[{"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/posts\/8469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/comments?post=8469"}],"version-history":[{"count":22,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/posts\/8469\/revisions"}],"predecessor-version":[{"id":8722,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/posts\/8469\/revisions\/8722"}],"wp:attachment":[{"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/media?parent=8469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/categories?post=8469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chatteris.biz\/blog\/wp-json\/wp\/v2\/tags?post=8469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}