Measure your water consumption with the magnetic flow sensor on your Sydney water meter.
This works by calculating how many pulses your water meter does for every 1L of water. The code is based off one pulse for every 0.5L of water.
The below parts are recommended for both the Zigbee and ESP version
- Waterproof Enclosure
- Cable Gland
- Required length of 2 core wire
- Reed Switch
- Heat shrink
Components required
Remove the reed switch from the sesnor board and solder the required lenght of wire in its place and the other end of wire to a reed switch making sure the exposed leads are covered with heat shrink.
See water-meter-zigbee-YAML file for home assistant code.
Using a ESP32, KY025 board and a tri coloured LED for status indictation.
Components required
- ESP32
- Dupont Jumpers
- KY025: KY025-shop
- LED RGB 5mm 4 pin - Cathode: Banggood
In the tables below you will find more information, about how to connect the various components.
Remove the reed switch from the KY025 board and solder the required lenght of wire in its place and the other end of wire to a reed switch making sure the exposed leads are covered with heat shrink.
How the KY025 board is connected to the ESP32
| KY025 Board | ESP32 |
|---|---|
| A0 | NOT USING |
| DO | D12 (GPIO12) |
| VCC | 3V3 |
| GND | GND |
How the status LED is connected to the ESP board of your choice. For each measured pulse, the LED will briefly flash red and in case of no WiFi connection, the LED will continue to flash blue.
| LED | ESP32 |
|---|---|
| RED | D2 (GPIO2) |
| GREEN | D4 (GPIO4) |
| BLUE | D5 (GPIO5) |
| GND | GND |
See water-meter.yaml for ESPHome code