{"id":8494,"date":"2025-04-05T14:58:54","date_gmt":"2025-04-05T12:58:54","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=8494"},"modified":"2026-01-01T18:12:34","modified_gmt":"2026-01-01T16:12:34","slug":"je-teste-le-capteur-de-niveau-zigbee-par-ultrasons-me201wz-de-chez-moray","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/je-teste-le-capteur-de-niveau-zigbee-par-ultrasons-me201wz-de-chez-moray","title":{"rendered":"I am testing the ME201WZ Zigbee ultrasonic level sensor from MORAY"},"content":{"rendered":"<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_180035-rotated.jpg\" alt=\"Moray Sensor ME201WZ\" width=\"283\" height=\"377\" \/><\/p>\n<p>I need to monitor the water level of my buried tank. So I chose the Zigbee ultrasonic level sensor <strong><a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/me201wz\/\" target=\"_blank\" rel=\"noopener\">ME201WZ<\/a> Moray 's<\/strong>. This small device measures the distance by ultrasound and accurately indicates the level of the liquid remaining in the tank. What I appreciate right away: simple installation, robustness, minimal maintenance, and above all a mains power supply (I no longer have to manage batteries).<\/p>\n<p>Originally, this sensor was designed for the Tuya Smart\/Smart Life application, but I prefer to integrate it into <strong>Zigbee2MQTT<\/strong> to keep full control of my home automation equipment.<\/p>\n<p><!--more--><\/p>\n<p><!-- VUE D'ENSEMBLE --><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 33.3333%;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citerneok.gif\" alt=\"Dashboard 1\" width=\"366\" height=\"180\" \/><\/td>\n<td style=\"width: 33.3333%;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citernev4-2.gif\" alt=\"Dashboard 2\" width=\"364\" height=\"179\" \/><\/td>\n<td style=\"width: 33.3333%;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citernev3.gif\" alt=\"Dashboard 3\" width=\"364\" height=\"179\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\ud83d\uded2 Where to buy this equipment?<\/h2>\n<p>Here is the link to the page dedicated to\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/me201wz\/\" target=\"_blank\" rel=\"noopener\">ME201WZ<\/a> . I referenced the sellers and prices.<\/p>\n<h2>\ud83d\udce6 I check the contents of the package<\/h2>\n<p>At the reception, I unpack everything: the sensor, the fixing screws and the manual are there. Nothing is missing.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_144709.jpg\" alt=\"Unpacking Sensor\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_144810.jpg\" alt=\"Moray sensor\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_144815.jpg\" alt=\"Package content\" width=\"500\" height=\"667\" \/><\/p>\n<h2>\ud83c\udfe1 Advice before installation<\/h2>\n<p>I recommend pairing the sensor <strong>before<\/strong> attach it to the tank, as the pairing button is underneath the appliance. I check the compatibility of the cover, and I prepare the passage of the mains cable.<\/p>\n<h2>\ud83d\udd17 I pair the sensor to Zigbee2MQTT<\/h2>\n<p>I plug the sensor into the mains and then press the pairing button (under the sensor) for 5 seconds until the LED flashes quickly. It took me three tries to succeed: You have to be patient! As soon as Zigbee2MQTT detects the sensor, I can proceed.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/bouton.png\" alt=\"Pairing button\" width=\"500\" height=\"453\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citerne02-1.png\" alt=\"Zigbee2MQTT Detection\" width=\"968\" height=\"81\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citerne03.png\" alt=\"Zigbee2MQTT interface\" width=\"501\" height=\"604\" \/><\/p>\n<h2>\ud83d\udd28 I install the sensor on the tank<\/h2>\n<p>My buried tank has two lids. I attach the sensor to one of them, just above the access well.<\/p>\n<p>I start by measuring the diameter of the lid to choose the right flash saw. I make the opening, fix the sensor and close the whole thing. Here are the steps in pictures:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/cuve.png\" alt=\"Cuve\" width=\"438\" height=\"362\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_172751-rotated.jpg\" alt=\"Diameter measurement\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_172822.jpg\" alt=\"Bell Saw\" width=\"500\" height=\"375\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250408_182433-rotated.jpg\" alt=\"Wells\" width=\"405\" height=\"540\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_173022-rotated.jpg\" alt=\"Installation 1\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_173103-rotated.jpg\" alt=\"Installation 2\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_173136-rotated.jpg\" alt=\"Installation 3\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_175147-rotated.jpg\" alt=\"Installation 4\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_180031-rotated.jpg\" alt=\"Installation 5\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250405_180035-rotated.jpg\" alt=\"Installation 6\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250408_182446-rotated.jpg\" alt=\"Installation 7\" width=\"500\" height=\"667\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/20250408_182554.jpg\" alt=\"Final installation\" width=\"500\" height=\"375\" \/><\/p>\n<p>I measure the depth of the tank (1.5 m) and the current height of water (1.2 m): I will be able to configure the sensor precisely.<\/p>\n<h2>\u2699  I configure the reference levels<\/h2>\n<p>The manual details the procedure for entering the mini and maxi levels. I note my measurements and notes on the manual. I had some formatting issues in Zigbee2MQTT, but the configuration worked smoothly in Home Assistant.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/config-1.png\" alt=\"Manual with measures\" width=\"613\" height=\"474\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/config2.png\" alt=\"Configuration Home Assistant\" width=\"629\" height=\"695\" \/><\/p>\n<p>Once set up, the sensor sends consistent and reliable data.<\/p>\n<h2>\ud83d\udce1 I check the Zigbee connection<\/h2>\n<p>My vat is 15 metres from the house: I monitor the connection quality (LQI around 150). I noticed frequent disconnections (approximately one per hour). I add a Zigbee Aeotec repeater, the LQI climbs to 248, but the cuts persist \u2026 Fortunately, they only last a few seconds and do not interfere with data collection.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/lqi.png\" alt=\"LQI Zigbee\" width=\"1259\" height=\"377\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/indispo.png\" alt=\"Log out\" width=\"335\" height=\"434\" \/><\/p>\n<p><strong>Update:<\/strong> with the repeater Aeotec <a href=\"https:\/\/www.domadoo.fr\/fr\/peripheriques\/6288-aeotec-repeteur-routeur-zigbee-range-extender-zi-wg001-1220000017078.html?domid=67\" target=\"_blank\" rel=\"noopener\">Range Extender Zi WG001<\/a>, LQI at 248, but still some cuts (without annoying impact).<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/fluid04.png\" alt=\"LQI 248\" width=\"304\" height=\"103\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/fluid05.png\" alt=\"Persistent disconnection\" width=\"302\" height=\"314\" \/><\/p>\n<h2>\ud83d\udd0e I check the recovered data<\/h2>\n<p>The sensor shall provide:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/fluid06.png\" alt=\"Sensor data\" width=\"308\" height=\"190\" \/><\/p>\n<ul>\n<li><strong>Liquid depth<\/strong> : height of water from the bottom of the tank<\/li>\n<li><strong>Liquid level percent<\/strong> : filling percentage<\/li>\n<li><strong>Liquid state<\/strong> : condition (low, normal, high)<\/li>\n<\/ul>\n<p>In fact, only the distance is measured: The rest depends on my configuration settings.<\/p>\n<h2>\ud83d\udcca I personalise the display in Home Assistant<\/h2>\n<p>For the display, I use the map <a href=\"https:\/\/github.com\/swingerman\/lovelace-fluid-level-background-card\" target=\"_blank\" rel=\"noopener\">Lovelace Fluid Level Background Card<\/a> (installation via HACS).<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/citerneok.gif\" alt=\"Dashboard Home Assistant\" width=\"366\" height=\"180\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/fluid01.png\" alt=\"HACS installation\" width=\"632\" height=\"275\" \/><\/p>\n<p>Here is the YAML code of my personalised Home Assistant card:<\/p>\n<pre><code class=\"language-yaml\">Type: custom:fluid-level-background-card entity: sensor.level _eau _citerne _liquid _level _percent card: show_name: false show_icon: true show_state: true type: glance entities: - entity: sensor.level _eau _citerne _liquid _depth name: Depth icon: mdi:arrow-up-bold - entity: sensor.level _eau _citerne _liquid _level _percent name: Unit level: \"%\" icon: mdi:water-percent - entity: binary_sensor.floater_pompe_arrosage name: Floater icon: mdi:water-percent state_color: false columns: 3 title: Water level in the tank full_value: 100 severity: [] fill_entity: sensor.level_eau_citerne_liquid_depth tap_action: Action: more-info\r\n<\/code><\/pre>\n<p>The sensor <code>binary_sensor.floater_pump_watering<\/code> is an ON\/OFF float (detailed <a href=\"https:\/\/www.sigalou-domotique.fr\/en\/pompe-jardin-et-arrosage-sonoff-4ch-pro-et-esp-easy\/\" target=\"_blank\" rel=\"noopener\">in this article<\/a>) : it cuts off the pump if the tank is empty.<\/p>\n<h2>\ud83d\udee0  I improve the end-of-tank detection<\/h2>\n<p>I keep an ON\/OFF float to cut off the watering pump in the event of an empty tank. The objective: set the \"low\" threshold of the ultrasonic sensor at the level of the float tipping, to have a double safety.<\/p>\n<p>I do a drain test: I open all the taps, and I note the moment when the float shuts off the pump.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/pompe01.png\" alt=\"Floating curve\" width=\"752\" height=\"573\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/pompe02.png\" alt=\"Drainage 2\" width=\"756\" height=\"420\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/pompe03.png\" alt=\"Drainage 3\" width=\"756\" height=\"412\" \/><\/p>\n<p>At 14.06, the float switches and the pump stops. Sensor displays 44% and 0.53 m in height: I set the value <strong>Mini set<\/strong> the Sensor at 45%.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/04\/pompe04.png\" alt=\"Threshold adjustment\" width=\"796\" height=\"333\" \/><\/p>\n<p>Thus, the status <strong>Liquid state<\/strong> switches to \"low\" and I can trigger a pump cut-off automation in Home Assistant.<\/p>\n<p>I am adjusting the dashboard card with this YAML code:<\/p>\n<pre><code class=\"language-yaml\">Type: custom:fluid-level-background-card entity: sensor.level _eau _citerne _liquid _level _percent card: show_name: false show_icon: true show_state: true type: glance entities: - entity: sensor.level _eau _citerne _liquid _depth name: Depth icon: mdi:arrow-up-bold - entity: sensor.level _eau _citerne _liquid _level _percent name: Unit level: \"%\" icon: mdi:water-percent - entity: binary_sensor.floater_pompe_arrosage name: Floater icon: mdi:water-percent state_color: false columns: 3 title: Water level in the tank full_value: 100 severity: -value: 20 color: red - value: 45 color: orange - value: 50 color: - 3 - 169 - 244 fill_entity: sensor.level_eau_citerne_liquid_depth tap_action: Action: more-info\r\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>I need to monitor the water level of my buried tank. So I chose the Zigbee ultrasonic sensor ME201WZ from Moray. This small device measures the distance by ultrasound and precisely indicates the level of the liquid remaining in the tank. What I appreciate right away: simple installation, robustness, minimal maintenance, and [...]<\/p>","protected":false},"author":1,"featured_media":8530,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,108],"tags":[],"class_list":["post-8494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-test-produit"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/8494","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=8494"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/8494\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media\/8530"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=8494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=8494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=8494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}