{"id":490,"date":"2020-05-21T18:25:49","date_gmt":"2020-05-21T16:25:49","guid":{"rendered":"https:\/\/www.tekkiebros.de\/?p=490"},"modified":"2025-05-30T16:38:28","modified_gmt":"2025-05-30T14:38:28","slug":"smarte-esp8266-wemos-d1-mini-wasseruhr","status":"publish","type":"post","link":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/","title":{"rendered":"Smarte ESP8266 Wemos D1 Mini Wasseruhr"},"content":{"rendered":"\n<p>So langsam weitet sich der Smart Home Hype auch auf den Garten aus. Nach der Installation einer automatischen Bew\u00e4sserung fehlt nur noch die kosteng\u00fcnstige smarte Wasseruhr, die zeigt wie viel Wasser tats\u00e4chlich durch die Leitung flie\u00dft. Das Ganze sollte f\u00fcr uns smarte Tekkie-Fans nat\u00fcrlich auch direkt ins Smart Home System eingebunden sein!<\/p>\n\n\n\n<p>F\u00fcr die einfache und vor allem kosteng\u00fcnstige selbstgebaute smarte Wasseruhr verwenden wir:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/amzn.to\/3bT8a68\" target=\"_blank\">Wemos D1 Mini<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/amzn.to\/2zaPIsG\" target=\"_blank\">Durchflusssensor (Hall-Sensor)<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/amzn.to\/3bUhlTU\" target=\"_blank\">Jumper Wire<\/a><\/li><\/ul>\n\n\n\n<p>Beim Sensor ist zu beachten, dass dieser das passende Gewinde hat. Wir haben ein 1\/2 Zoll Gewinde.<\/p>\n\n\n\n<p>Der Wemos D1 Mini wird mit der Arduino IDE programmiert. Den passenden Code k\u00f6nnt ihr in unserer GitHub-Repository kostenlos downloaden.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/github.com\/tekkiebros\/smartflowsensor\/blob\/master\/flowSensor.ino\" target=\"_blank\" rel=\"noreferrer noopener\">Download Code from Github<\/a><\/div>\n<\/div>\n\n\n\n<p>Falls ihr unseren Sensor nachbauen m\u00f6chtet, ist vor allem der obere Teil des Codes wichtig. In diesem m\u00fcsst ihr die Variablen anpassen, sodass sich der Wemos mit eurem WLAN und MQTT-Server verbinden kann.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define wifi_ssid \"YOUR_SSID\"                   \/\/ WLAN SSID\n#define wifi_password \"YOUR_WIFI_PASSWORD\"      \/\/ WLAN Password\n\n#define mqtt_server \"YOUR_MQTT_SERVER_IP\"       \/\/ MQTT IP address \ne.g. 192.168.2.187\n#define mqtt_port \"1883\"                        \/\/ MQTT Port\n#define mqtt_user \"MQTT_USER\"                   \/\/ MQTT User\n#define mqtt_password \"MQTT_PASSWORD\"           \/\/ MQTT Password\n\n\nfloat factor = 4.7;                             \/\/Flow Sensor Factor<\/code><\/pre>\n\n\n\n<p>Mit der Variable &#8222;factor&#8220; haben wir unseren Sensor kalibriert. Dazu haben wir solange Wasser durchflie\u00dfen lassen, bis der Messbecher mit 500ml gef\u00fcllt war. \u00dcber die serielle Schnittstelle konnten wir dann \u00fcberwachen, wie viel der Sensor angeblich gemessen hat. Angefangen haben wir mit einem Wert von 5.0. Die serielle Ausgabe zeigte dabei aber deutlich mehr als 500ml an. So haben wir den Faktor immer weiter um 0.1 gesenkt, bis die serielle Ausgabe ebenfalls 500ml angezeigt hat. Der Sensor wird bei uns an den Pin D3 angeschlossen. Dieser kann nat\u00fcrlich aber auch individuell ge\u00e4ndert werden.<\/p>\n\n\n\n<p>Alle 30 Sekunden wird ein aktueller Status der momentanen, sowie der totalen Durchflussrate \u00fcber MQTT ver\u00f6ffentlicht. Ein Smart Home Server wie Home Assistant kann das MQTT Topic subscriben und in seiner Oberfl\u00e4che anzeigen. In diesem Sinne: Wasser marsch!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So langsam weitet sich der Smart Home Hype auch auf den Garten aus. Nach der Installation einer automatischen Bew\u00e4sserung fehlt nur noch die kosteng\u00fcnstige smarte Wasseruhr, die zeigt wie viel Wasser tats\u00e4chlich durch die Leitung flie\u00dft. Das Ganze sollte f\u00fcr uns smarte Tekkie-Fans nat\u00fcrlich auch direkt ins Smart Home System [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":494,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,20],"tags":[7,55,38,41,42,43],"class_list":["post-490","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-diy","category-smart-home","tag-diy","tag-esp8266","tag-homeassistant","tag-mqtt","tag-wemos","tag-wemos-d1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros<\/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.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros\" \/>\n<meta property=\"og:description\" content=\"So langsam weitet sich der Smart Home Hype auch auf den Garten aus. Nach der Installation einer automatischen Bew\u00e4sserung fehlt nur noch die kosteng\u00fcnstige smarte Wasseruhr, die zeigt wie viel Wasser tats\u00e4chlich durch die Leitung flie\u00dft. Das Ganze sollte f\u00fcr uns smarte Tekkie-Fans nat\u00fcrlich auch direkt ins Smart Home System [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\" \/>\n<meta property=\"og:site_name\" content=\"Tekkiebros\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-21T16:25:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-30T14:38:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"664\" \/>\n\t<meta property=\"og:image:height\" content=\"664\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Leo von Tekkiebros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Leo von Tekkiebros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\"},\"author\":{\"name\":\"Leo von Tekkiebros\",\"@id\":\"https:\/\/www.tekkiebros.de\/#\/schema\/person\/43ec8d8860a79803cf423c259f413ec1\"},\"headline\":\"Smarte ESP8266 Wemos D1 Mini Wasseruhr\",\"datePublished\":\"2020-05-21T16:25:49+00:00\",\"dateModified\":\"2025-05-30T14:38:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\"},\"wordCount\":295,\"publisher\":{\"@id\":\"https:\/\/www.tekkiebros.de\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg\",\"keywords\":[\"DIY\",\"ESP8266\",\"Homeassistant\",\"MQTT\",\"Wemos\",\"Wemos D1\"],\"articleSection\":{\"1\":\"DIY\",\"2\":\"Smart Home\"},\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\",\"url\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\",\"name\":\"Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros\",\"isPartOf\":{\"@id\":\"https:\/\/www.tekkiebros.de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg\",\"datePublished\":\"2020-05-21T16:25:49+00:00\",\"dateModified\":\"2025-05-30T14:38:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage\",\"url\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg\",\"contentUrl\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg\",\"width\":664,\"height\":664},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/www.tekkiebros.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smarte ESP8266 Wemos D1 Mini Wasseruhr\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tekkiebros.de\/#website\",\"url\":\"https:\/\/www.tekkiebros.de\/\",\"name\":\"Tekkiebros\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.tekkiebros.de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tekkiebros.de\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tekkiebros.de\/#organization\",\"name\":\"Tekkiebros\",\"url\":\"https:\/\/www.tekkiebros.de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.tekkiebros.de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/TekkieBros-Logo_small-Kopie.jpg\",\"contentUrl\":\"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/TekkieBros-Logo_small-Kopie.jpg\",\"width\":320,\"height\":106,\"caption\":\"Tekkiebros\"},\"image\":{\"@id\":\"https:\/\/www.tekkiebros.de\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tekkiebros.de\/#\/schema\/person\/43ec8d8860a79803cf423c259f413ec1\",\"name\":\"Leo von Tekkiebros\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros","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.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/","og_locale":"de_DE","og_type":"article","og_title":"Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros","og_description":"So langsam weitet sich der Smart Home Hype auch auf den Garten aus. Nach der Installation einer automatischen Bew\u00e4sserung fehlt nur noch die kosteng\u00fcnstige smarte Wasseruhr, die zeigt wie viel Wasser tats\u00e4chlich durch die Leitung flie\u00dft. Das Ganze sollte f\u00fcr uns smarte Tekkie-Fans nat\u00fcrlich auch direkt ins Smart Home System [&hellip;]","og_url":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/","og_site_name":"Tekkiebros","article_published_time":"2020-05-21T16:25:49+00:00","article_modified_time":"2025-05-30T14:38:28+00:00","og_image":[{"width":664,"height":664,"url":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg","type":"image\/jpeg"}],"author":"Leo von Tekkiebros","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Leo von Tekkiebros","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#article","isPartOf":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/"},"author":{"name":"Leo von Tekkiebros","@id":"https:\/\/www.tekkiebros.de\/#\/schema\/person\/43ec8d8860a79803cf423c259f413ec1"},"headline":"Smarte ESP8266 Wemos D1 Mini Wasseruhr","datePublished":"2020-05-21T16:25:49+00:00","dateModified":"2025-05-30T14:38:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/"},"wordCount":295,"publisher":{"@id":"https:\/\/www.tekkiebros.de\/#organization"},"image":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg","keywords":["DIY","ESP8266","Homeassistant","MQTT","Wemos","Wemos D1"],"articleSection":{"1":"DIY","2":"Smart Home"},"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/","url":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/","name":"Smarte ESP8266 Wemos D1 Mini Wasseruhr &#8212; Tekkiebros","isPartOf":{"@id":"https:\/\/www.tekkiebros.de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage"},"image":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg","datePublished":"2020-05-21T16:25:49+00:00","dateModified":"2025-05-30T14:38:28+00:00","breadcrumb":{"@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#primaryimage","url":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg","contentUrl":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/smarteWasseruhr.jpg","width":664,"height":664},{"@type":"BreadcrumbList","@id":"https:\/\/www.tekkiebros.de\/index.php\/2020\/05\/21\/smarte-esp8266-wemos-d1-mini-wasseruhr\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.tekkiebros.de\/"},{"@type":"ListItem","position":2,"name":"Smarte ESP8266 Wemos D1 Mini Wasseruhr"}]},{"@type":"WebSite","@id":"https:\/\/www.tekkiebros.de\/#website","url":"https:\/\/www.tekkiebros.de\/","name":"Tekkiebros","description":"","publisher":{"@id":"https:\/\/www.tekkiebros.de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tekkiebros.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.tekkiebros.de\/#organization","name":"Tekkiebros","url":"https:\/\/www.tekkiebros.de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.tekkiebros.de\/#\/schema\/logo\/image\/","url":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/TekkieBros-Logo_small-Kopie.jpg","contentUrl":"https:\/\/www.tekkiebros.de\/wp-content\/uploads\/TekkieBros-Logo_small-Kopie.jpg","width":320,"height":106,"caption":"Tekkiebros"},"image":{"@id":"https:\/\/www.tekkiebros.de\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.tekkiebros.de\/#\/schema\/person\/43ec8d8860a79803cf423c259f413ec1","name":"Leo von Tekkiebros"}]}},"_links":{"self":[{"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/comments?post=490"}],"version-history":[{"count":7,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/posts\/490\/revisions\/499"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/media\/494"}],"wp:attachment":[{"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/media?parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/categories?post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tekkiebros.de\/index.php\/wp-json\/wp\/v2\/tags?post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}