{"id":2837,"date":"2022-01-27T10:12:32","date_gmt":"2022-01-27T08:12:32","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=2837"},"modified":"2025-02-22T19:42:59","modified_gmt":"2025-02-22T17:42:59","slug":"domotiser-sa-consommation-deau","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau","title":{"rendered":"Controlling water consumption (<15\u20ac)"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2842\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/turbine.png\" alt=\"\" width=\"283\" height=\"153\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/turbine.png 1000w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/turbine-600x325.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/turbine-300x162.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/turbine-768x415.png 768w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/p>\n<p>There are several ways to check its water consumption, here I have chosen to place a hall-effect turbine at the exit of my hot water tank (water heater), this turbine is equipped with a temperature sensor, I have also put a turbine on the cold water network (optional).<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3012\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-30-43-Dashboard-Jeedom.png\" alt=\"\" width=\"195\" height=\"72\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3021\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom.png\" alt=\"\" width=\"513\" height=\"251\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom.png 513w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom-300x147.png 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6aea4cf4b50dd\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6aea4cf4b50dd\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Objectifs\" >Objectives<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Materiels_necessaires_et_cout\" >Necessary equipment and cost<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Modification_des_fils_de_la_turbine_et_de_la_sonde_de_temperature\" >Modification of turbine wires and temperature sensor<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Brochage_du_D1_Mini\" >Broaching of the D1 Mini<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Quelques_elements_de_comprehension\" >Some elements of understanding<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Configuration_de_lESP_D1_Mini\" >Configuration of ESP D1 Mini<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Configuration_de_ESP_Easy\" >Setting up ESP Easy<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Onglet_devices\" >Device tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Onglet_Hardware\" >Hardware tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Onglet_Tools_Advanced\" >Tools \/ Advanced tab<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Calibrage_des_sondes_turbines\" >Calibration of probes (turbines)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Configuration_dans_le_plugin_ESP_Easy\" >Configuration in the ESP Easy plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Exploiter_les_donnees_dans_Jeedom\" >Harnessing data in Jeedom<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Scenario_de_calcul_Total_Eau_chaude\" >Calculation scenario Total Hot water<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Le_Virtual_Eau_Chaude_Froide\" >The Virtual Cold Hot Water<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Graphiques\" >Graphs<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/domotiser-sa-consommation-deau\/#Changements_et_ameliorations\" >Changes and improvements<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"Objectifs\"><\/span>Objectives<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Knowing how much hot water is consumed (by volume), knowing the flow rate is possible but I did not use it<\/li>\n<li>Know the temperature of the water coming out<\/li>\n<li>Know the consumption of cold water (with a second turbine)<\/li>\n<li>That the whole is completely autonomous and searchable by wifi<\/li>\n<li>Control of the cost of the whole<\/li>\n<li>Possibility to replace active elements without disassembly<\/li>\n<\/ul>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">\n<p><em><strong>Edit January 2025: This page has been significantly updated by replacing the D1 mini with its latest version, the D1 Mini V4. And I replaced ESP Easy with ESP Home (for easier integration with Home Assistant).<\/strong><\/em><\/p>\n<p><em><strong>New page:\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/je-domotiser-ma-consommation-deau\/\" target=\"_blank\" rel=\"noopener\">I domotise my water consumption<\/a><\/strong><\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span class=\"ez-toc-section\" id=\"Materiels_necessaires_et_cout\"><\/span>Necessary equipment and cost<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>A <a href=\"https:\/\/s.click.aliexpress.com\/e\/_9ABsZt\" target=\"_blank\" rel=\"noopener\">Hall Effect Turbine<\/a> in 3\/4 with integrated temperature sensor (10.90th port included)<\/li>\n<\/ul>\n<p><em><a href=\"https:\/\/s.click.aliexpress.com\/e\/_9ABsZt\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2838\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-27-at-08-39-22-Mon-AliExpress-gerer-les-commandes.png\" alt=\"\" width=\"379\" height=\"109\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-27-at-08-39-22-Mon-AliExpress-gerer-les-commandes.png 379w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-27-at-08-39-22-Mon-AliExpress-gerer-les-commandes-300x86.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/a><\/em><\/p>\n<ul>\n<li>If it is for cold water, there are <a href=\"https:\/\/s.click.aliexpress.com\/e\/_9HevFh\" target=\"_blank\" rel=\"noopener\">versions without thermometer<\/a><\/li>\n<\/ul>\n<p>The D1 Mini is equipped with several , entrances and you can use several turbines, either per zone to have the different consumptions, or hot and cold water (which I have chosen).<\/p>\n<ul>\n<li>A <a href=\"https:\/\/s.click.aliexpress.com\/e\/_A2f7nv\" target=\"_blank\" rel=\"noopener\">D1 Mini<\/a> ESP8266 (between 1 and 3\u20ac)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/s.click.aliexpress.com\/e\/_A2f7nv\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2588\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-10-at-19-45-47-ESP8266-D1-Mini-V2-ESP-12F-WiFi-Module-ProtoSupplies.png\" alt=\"\" width=\"189\" height=\"124\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-10-at-19-45-47-ESP8266-D1-Mini-V2-ESP-12F-WiFi-Module-ProtoSupplies.png 794w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-10-at-19-45-47-ESP8266-D1-Mini-V2-ESP-12F-WiFi-Module-ProtoSupplies-600x394.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-10-at-19-45-47-ESP8266-D1-Mini-V2-ESP-12F-WiFi-Module-ProtoSupplies-300x197.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-10-at-19-45-47-ESP8266-D1-Mini-V2-ESP-12F-WiFi-Module-ProtoSupplies-768x504.png 768w\" sizes=\"auto, (max-width: 189px) 100vw, 189px\" \/><\/a><\/p>\n<ul>\n<li>Resistance of 10k ohms (R1)<\/li>\n<li>A resistance of 10k ohms (Optional)<\/li>\n<li>connectors to be able to disconnect the active elements from the passive elements (options, 1\u20ac) 2P+3P<\/li>\n<\/ul>\n<p><a href=\"https:\/\/s.click.aliexpress.com\/e\/_9zp9uj\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2839\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/connecteurs.png\" alt=\"\" width=\"122\" height=\"101\" \/><\/a><\/p>\n<ul>\n<li>some <a href=\"https:\/\/s.click.aliexpress.com\/e\/_9uylTV\" target=\"_blank\" rel=\"noopener\">heat shrink insulation ducts<\/a><\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Modification_des_fils_de_la_turbine_et_de_la_sonde_de_temperature\"><\/span>Modification of turbine wires and temperature sensor<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>In order to detach the D1mini and the probe, I preferred not to weld them together.<\/p>\n<p><strong>On my first turbine<\/strong> : So I use simple connectors (I only had 4Ps on hand) , which gives:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2855\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/fils.png\" alt=\"\" width=\"285\" height=\"212\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/fils.png 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/fils-600x447.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/fils-300x224.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/fils-768x572.png 768w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/p>\n<ul>\n<li>The temperature sensor is equipped with two black wires, so no difficulty, no sense, I welded one black wire on the white wire and another black wire on the yellow wire<\/li>\n<li>The flow sensor is equipped with 3 wires, I kept the colours.<\/li>\n<\/ul>\n<p><strong>On the second turbine<\/strong>, I chose a model with connectors<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2938\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/connecteurs0.png\" alt=\"\" width=\"103\" height=\"102\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/connecteurs0.png 103w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/connecteurs0-100x100.png 100w\" sizes=\"auto, (max-width: 103px) 100vw, 103px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2939\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/connecteurs1.png\" alt=\"\" width=\"101\" height=\"122\" \/><\/p>\n<p>So I bought some <a href=\"https:\/\/s.click.aliexpress.com\/e\/_AYFtKr\" target=\"_blank\" rel=\"noopener\">corresponding connectors<\/a>, making it even easier to connect.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Brochage_du_D1_Mini\"><\/span>Broaching of the D1 Mini<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Here is the wiring<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3104\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1.png\" alt=\"\" width=\"1146\" height=\"729\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1.png 1146w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1-600x382.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1-300x191.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1-1024x651.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/D1MiniCapteurDebitEauChaude-1-768x489.png 768w\" sizes=\"auto, (max-width: 1146px) 100vw, 1146px\" \/><\/p>\n<p>In this scheme, I chose to replace the yellow yarn with a green yarn because the yellow was not visible. And to avoid confusion between 3.3V and 5V, I represented one in orange and the other in red. This will need to be adapted to the (optional) connectors explained in the previous paragraph.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Quelques_elements_de_comprehension\"><\/span><strong>Some elements of understanding<br \/><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>The <strong>temperature sensor<\/strong> is a thermistor, i.e. it changes in value as a function of temperature. So I test it on a divider bridge with a resistance of 10K (this value corresponds to the value closest to the temperature probe at 25\u00b0C) and this analog information enters the D1Mini on its analog input A0<\/p>\n<p>The <strong>flow sensor<\/strong> as for it gives digital information so to connect on a digital input, I chose D5 (and D7 for the second), other inputs were problematic during my tests. It is powered only by 3.3v because 5V on a digital input would grill the circuit. I added a pull-up resistance, it is not necessarily useful, the Wemos often has an integrated resistance, but given the price of a resistance, I did not hesitate. It is located between the data terminal and +3.3v. On the second turbine I did not put any resistance to test the difference, there is ultimately none.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Configuration_de_lESP_D1_Mini\"><\/span>Configuration of ESP D1 Mini<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>There are several methods to exploit Wemos and compatible products, I chose to use ESP Easy which I already use a lot with Sonoffs. Note that this part can be adapted to any ESP. My goal in taking the D1 Mini was to be independent so I wanted to avoid using a raspberry or arduino that would also be useful for something else.<\/p>\n<p>The power supply for the D1 mini, I prick it on a USB of a nearby computer equipment, without a nearby USB power supply, you can use a phone charger or any system that allows you to have 5v.<\/p>\n<p>The configuration of the D1 mini is detached from this tutorial for simplicity, it is necessary to have dedicated articles, it is therefore necessary to:<\/p>\n<ul>\n<li class=\"entry-title\"><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-un-d1-mini\">Flash the D1 Mini<\/a><\/li>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-un-d1-mini#Connexion_au_Wifi\">Connect the D1 Mini to Wifi<\/a><\/li>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-un-d1-mini#Affectation_dune_IP_sur_le_routeur_facultatif\">Assign an IP address to the D1 Mini<\/a><\/li>\n<li><a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flasher-un-d1-mini#Integration_du_D1Mini_dans_Jeedom\">Integrate the D1 Mini into Jeedom<\/a><\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Configuration_de_ESP_Easy\"><\/span>Setting up ESP Easy<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Beyond the usual settings to be configured in ESP Esasy (specified in the links above), it is interesting to zoom in on the elements specific to this tutorial:<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Onglet_devices\"><\/span>Device tab<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2989\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-28-22-D1Mini.png\" alt=\"\" width=\"926\" height=\"267\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-28-22-D1Mini.png 926w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-28-22-D1Mini-600x173.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-28-22-D1Mini-300x87.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-28-22-D1Mini-768x221.png 768w\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2990\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-29-07-D1Mini.png\" alt=\"\" width=\"751\" height=\"378\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-29-07-D1Mini.png 751w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-29-07-D1Mini-600x302.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-29-07-D1Mini-300x151.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2991\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini.png\" alt=\"\" width=\"947\" height=\"164\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini.png 947w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-600x104.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-300x52.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-768x133.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/p>\n<ul>\n<li><strong>Warm<\/strong> corresponds to the turbine on the hot water network (at the outlet of the balloon)<\/li>\n<\/ul>\n<p>It is connected to the D5 digital input (so GPIO14)<\/p>\n<p>I chose to set a refresh interval to 2s but it is not mandatory, it is just to see the meter mounted when you open the water.<\/p>\n<p>Three numeric values are given by the probe, I have chosen to delete the decimal places. The total value is to be divided by 390, I explain below how to find the denominator of this division.<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2995\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-00-D1Mini.png\" alt=\"\" width=\"794\" height=\"378\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-00-D1Mini.png 794w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-00-D1Mini-600x286.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-00-D1Mini-300x143.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-00-D1Mini-768x366.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2994\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-16-D1Mini.png\" alt=\"\" width=\"973\" height=\"189\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-16-D1Mini.png 973w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-16-D1Mini-600x117.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-16-D1Mini-300x58.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-35-16-D1Mini-768x149.png 768w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/p>\n<ul>\n<li><strong>Temperature <\/strong>corresponds to the temperature of the hot water<\/li>\n<\/ul>\n<blockquote>\n<p><em>Note 03\/04\/2022<\/em> On a <a href=\"https:\/\/community.jeedom.com\/t\/conso-eau-froide-chaude-pour-moins-15\" target=\"_blank\" rel=\"noopener\">the Benevolent Council of Seb821<\/a>, I connected the thermistor to 3.3V and not 5V.\u00a0<\/p>\n<\/blockquote>\n<p>It is connected to analog input A0<\/p>\n<p>I chose to take only integer values, this limits links to Jeedom and unnecessary storage of information.<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2993\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-03-D1Mini.png\" alt=\"\" width=\"783\" height=\"397\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-03-D1Mini.png 783w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-03-D1Mini-600x304.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-03-D1Mini-300x152.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-03-D1Mini-768x389.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2992\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-14-D1Mini.png\" alt=\"\" width=\"929\" height=\"170\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-14-D1Mini.png 929w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-14-D1Mini-600x110.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-14-D1Mini-300x55.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-33-14-D1Mini-768x141.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/p>\n<ul>\n<li><strong>Cold <\/strong>corresponds to the turbine on the general inlet of the cold water network (optional)<\/li>\n<\/ul>\n<p>It is connected to the D7 digital input (so GPIO13)<\/p>\n<p>Three numeric values are given by the probe, I have chosen to delete the decimal places. The total value is to be divided by 408, I explain below how to find the denominator of this division.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Onglet_Hardware\"><\/span>Hardware tab<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>This does not seem mandatory, but I have become accustomed to specifying what I intend to do with the D1Mini pins, so I have configured the two digital inputs I use as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2996\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-41-39-D1Mini.png\" alt=\"\" width=\"401\" height=\"163\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-41-39-D1Mini.png 401w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-41-39-D1Mini-300x122.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/p>\n<p>As I2C is not used, I disable everything:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2997\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-04-D1Mini.png\" alt=\"\" width=\"346\" height=\"123\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-04-D1Mini.png 346w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-04-D1Mini-300x107.png 300w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Onglet_Tools_Advanced\"><\/span>Tools \/ Advanced tab<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>It is totally useless but it is cleaner, I put an NTP server so that the D1 is on time (192.168.1.1 is my Syno Router)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2998\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-53-D1Mini.png\" alt=\"\" width=\"407\" height=\"161\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-53-D1Mini.png 407w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-43-53-D1Mini-300x119.png 300w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/p>\n<p>Disabling serial port is also a good practice<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2999\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-45-25-D1Mini.png\" alt=\"\" width=\"376\" height=\"116\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-45-25-D1Mini.png 376w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-45-25-D1Mini-300x93.png 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Calibrage_des_sondes_turbines\"><\/span>Calibration of probes (turbines)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The probes have a necessary calibration, the turbine responds to a number of revolutions per minute and we would like liters of water.<\/p>\n<p>There is no miracle recipe, each turbine having its own physical constraints, at our level, a \u2018bucket filling\u2019 test will make it possible to calibrate the probes very well.<\/p>\n<p>Here is how to do it:<\/p>\n<ul>\n<li>Don't put anything in TotalChaude's Formula column<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3109\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02.png\" alt=\"\" width=\"947\" height=\"164\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02.png 947w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-600x104.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-300x52.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-768x133.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/p>\n<ul>\n<li>Raise the value of TotalChaude: (e.g. TC1=1000)<\/li>\n<li>Take a jump and fill 5 litres of water (e.g. Jump=5)<\/li>\n<li>Raise the new value of TotalChaude: (e.g. TC2=2950)<\/li>\n<\/ul>\n<p>The index shall be I=(TC2-TC1)\/Saut or (2950-1000)\/5 ) = <strong>390<\/strong><\/p>\n<p>And the formula to add will be %value%\/390<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2991\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini.png\" alt=\"\" width=\"947\" height=\"164\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini.png 947w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-600x104.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-300x52.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-31-05-D1Mini-768x133.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Configuration_dans_le_plugin_ESP_Easy\"><\/span>Configuration in the ESP Easy plugin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The D1 Mini is therefore a device of the ESP Easy plugin<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2851\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-27-at-12-43-23-Espeasy-Jeedom.png\" alt=\"\" width=\"100\" height=\"149\" \/><\/p>\n<p>ESP Easy device data arrives as info commands in the plugin:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3002\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-47-56-Espeasy-Jeedom.png\" alt=\"\" width=\"664\" height=\"353\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-47-56-Espeasy-Jeedom.png 664w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-47-56-Espeasy-Jeedom-600x319.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-47-56-Espeasy-Jeedom-300x159.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Exploiter_les_donnees_dans_Jeedom\"><\/span>Harnessing data in Jeedom<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>This paragraph is very important. It is necessary because the totals (cold water conso + hot water conso) measured are not kept in the D1Mini. <strong>in the event of a power cut, the meters start from zero<\/strong> !!!<\/p>\n<p>For this, I use 2 scenarios + 1 virtual.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3003\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-52-22-Scenarios-Jeedom.png\" alt=\"\" width=\"211\" height=\"91\" \/> + <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3004\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-53-07-Virtual-Jeedom.png\" alt=\"\" width=\"121\" height=\"135\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Scenario_de_calcul_Total_Eau_chaude\"><\/span>Calculation scenario Total Hot water<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>I describe only the hot water scenario, the cold water scenario is the same in logic.<\/p>\n<p>It is a change in value <strong>TotalChaude<\/strong> This triggers the launch of the scenario:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3005\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-54-46-Eau-chaude-Calcul-total-Jeedom.png\" alt=\"\" width=\"368\" height=\"62\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-54-46-Eau-chaude-Calcul-total-Jeedom.png 368w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-54-46-Eau-chaude-Calcul-total-Jeedom-300x51.png 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/p>\n<p>Here is the scenario as a whole, I will detail below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3006\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom.png\" alt=\"\" width=\"1588\" height=\"396\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom.png 1588w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom-600x150.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom-300x75.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom-1024x255.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom-768x192.png 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-02-56-50-Eau-chaude-Calcul-total-Jeedom-1536x383.png 1536w\" sizes=\"auto, (max-width: 1588px) 100vw, 1588px\" \/><\/p>\n<p>To have the full text version:<\/p>\n<blockquote>\n<p>\u2013 Scenario name: Hot water Total calculation<br \/>\u2013 Parent subject matter: Cold Hot Water<br \/>\u2013 Scenario mode: provoke<br \/>\u2013 Event: #[Cold Hot Water][D1Mini][TotalChaude]#<\/p>\n<p>SI #[Cold Hot Water][D1Mini][TotalChaude]# &gt; variable(Total Hot water Previous)<br \/>THEN<br \/>(variable) Assignment of variable: Total Variable Hot Water(Total Hot Water) +#[Cold Hot Water][D1Mini][TotalChaude]# \u2013 variable(Total Hot water Previous)<br \/>SINON<\/p>\n<p>SI #[Cold Hot Water][D1Mini][TotalChaude]# &lt; variable(Total Hot Water Previous)<br \/>THEN<br \/>(variable) Assignment of variable: Total Variable Hot Water(Total Hot Water) + #[Cold Hot Water][D1Mini][TotalChaude]#<br \/>SINON<\/p>\n<p>ACTION<br \/>(variable) Assignment of variable: Total Hot water Previous to #[Cold Hot Water][D1Mini][TotalChaude]#<\/p>\n<\/blockquote>\n<p>And deactivated:<\/p>\n<blockquote>\n<p>ACTION<br \/>(variable) Assignment of variable: Total Hot water Previous to 0<br \/>(variable) Assignment of variable: Total Hot water at 0<\/p>\n<\/blockquote>\n<p>Before explaining the scenario, it is useful to specify that the greyed-out part is to be activated only once to initialise two variables (Total Hot Water Previous and Total Hot Water) to zero.<\/p>\n<ul>\n<li>The variable <strong>Total Hot water Previous<\/strong> remembers the last value of the hot water meter<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3007\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-03-19-Eau-chaude-Calcul-total-Jeedom.png\" alt=\"\" width=\"988\" height=\"64\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-03-19-Eau-chaude-Calcul-total-Jeedom.png 988w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-03-19-Eau-chaude-Calcul-total-Jeedom-600x39.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-03-19-Eau-chaude-Calcul-total-Jeedom-300x19.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-03-19-Eau-chaude-Calcul-total-Jeedom-768x50.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/p>\n<p>The <strong>first test<\/strong> verifies that the new value of the hot water meter is higher than the previous value received from the meter (which is the usual operation)<\/p>\n<p>In this case, the Total Hot Water variable takes the value of: variable(Total Hot water) +#[Cold Hot Water][D1Mini][TotalChaude]# \u2013 variable(Total Hot water Previous)<\/p>\n<p>Example:<\/p>\n<ul>\n<li>#[Cold Hot Water][D1Mini][TotalChaude]# = 809<\/li>\n<li>variable(Total Hot water Previous) = 808<\/li>\n<li>variable(Total Hot water) = 3750<\/li>\n<\/ul>\n<p>Total Hot water=3750+809-808=3751, the new value of the hot water meter will be 3751<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3008\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-10-33-Eau-chaude-Calcul-total-Jeedom.png\" alt=\"\" width=\"994\" height=\"68\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-10-33-Eau-chaude-Calcul-total-Jeedom.png 994w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-10-33-Eau-chaude-Calcul-total-Jeedom-600x41.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-10-33-Eau-chaude-Calcul-total-Jeedom-300x21.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-10-33-Eau-chaude-Calcul-total-Jeedom-768x53.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/p>\n<p>The second test checks if the new value received from the hot water meter is less than the last value recorded, this means that the D1 meter has returned to zero in the meantime.<\/p>\n<p>In this case, the Total Hot Water variable takes the value of: variable(Total Hot water) + #[Cold Hot Water][D1Mini][TotalChaude]#<\/p>\n<p>Example:<\/p>\n<ul>\n<li>#[Cold Hot Water][D1Mini][TotalChaude]# = 3<\/li>\n<li>variable(Total Hot water Previous) = 808<\/li>\n<li>variable(Total Hot water) = 3751<\/li>\n<\/ul>\n<p>Total Hot water=3751+3=3754, the new value of the hot water meter will be 3754<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3009\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-15-15-Eau-chaude-Calcul-total-Jeedom.png\" alt=\"\" width=\"988\" height=\"53\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-15-15-Eau-chaude-Calcul-total-Jeedom.png 988w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-15-15-Eau-chaude-Calcul-total-Jeedom-600x32.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-15-15-Eau-chaude-Calcul-total-Jeedom-300x16.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-15-15-Eau-chaude-Calcul-total-Jeedom-768x41.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/p>\n<p>This last block records the last value of the hot water meter (#[Cold Hot Water][D1Mini][TotalChaude]#) in the variable Total Hot water Previous. This value is important, it is tested to find out which of the two previous blocks is used to calculate the value of Total Hot Water.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Le_Virtual_Eau_Chaude_Froide\"><\/span>The Virtual Cold Hot Water<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3012\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-30-43-Dashboard-Jeedom.png\" alt=\"\" width=\"195\" height=\"72\" \/><\/p>\n<p>Nothing very complicated, we recover the variables variable(Total Hot Water) and variable(Total Cold Water)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3013\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-31-42-Virtual-Jeedom.png\" alt=\"\" width=\"1000\" height=\"130\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-31-42-Virtual-Jeedom.png 1000w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-31-42-Virtual-Jeedom-600x78.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-31-42-Virtual-Jeedom-300x39.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-31-42-Virtual-Jeedom-768x100.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Graphiques\"><\/span>Graphs<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Since the values of cold water and hot water are recorded, you might as well enjoy it by displaying it on its design<\/p>\n<p>Here are examples of graphs, everyone will be able to do what they like.<\/p>\n<ul>\n<li>Consumption of the day<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3019\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-35-50-Stations-service-Jeedom.png\" alt=\"\" width=\"516\" height=\"254\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-35-50-Stations-service-Jeedom.png 516w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-35-50-Stations-service-Jeedom-300x148.png 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/p>\n<ul>\n<li>Monthly consumption<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3021\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom.png\" alt=\"\" width=\"513\" height=\"251\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom.png 513w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-37-13-Stations-service-Jeedom-300x147.png 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/p>\n<p>As this graph is the most interesting, I detail it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3024\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-40-09-Stations-service-Jeedom.png\" alt=\"\" width=\"988\" height=\"52\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-40-09-Stations-service-Jeedom.png 988w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-40-09-Stations-service-Jeedom-600x32.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-40-09-Stations-service-Jeedom-300x16.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-40-09-Stations-service-Jeedom-768x40.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3023\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-39-49-Stations-service-Jeedom.png\" alt=\"\" width=\"1005\" height=\"49\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-39-49-Stations-service-Jeedom.png 1005w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-39-49-Stations-service-Jeedom-600x29.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-39-49-Stations-service-Jeedom-300x15.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-39-49-Stations-service-Jeedom-768x37.png 768w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/p>\n<p>You must choose the \"Column\" mode and choose \"Summary per day\". Put one of the two ladders visible.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3025\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-43-22-Stations-service-Jeedom.png\" alt=\"\" width=\"444\" height=\"234\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-43-22-Stations-service-Jeedom.png 444w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-03-31-at-03-43-22-Stations-service-Jeedom-300x158.png 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Changements_et_ameliorations\"><\/span>Changes and improvements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>03\/04\/2022: The thermistor should instead be connected to 3.3V to protect the Analogue input, modified diagram, thank you Seb821.<\/li>\n<li>To study a solution to avoid the refresh to 2s, can be with the rules (rules) of Esp Easy<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>There are several ways to check its water consumption, here I have chosen to place a hall-effect turbine at the exit of my hot water tank (water heater), this turbine is equipped with a temperature sensor, I have also put a turbine on the cold water network (optional).<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,23],"tags":[99],"class_list":["post-2837","post","type-post","status-publish","format-standard","hentry","category-domotique","category-home-assistant","category-jeedom-2","tag-eau"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=2837"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2837\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=2837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=2837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=2837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}