Toon App: Water
Posted: Wed Feb 03, 2021 11:48 pm
Measure your water usage with a cheap proximity sensor and a Wemos D1 mini.
SOFTWARE UPDATE TO 1.4.35. To flash this new version first flash 4 mb blank of reset to factory defaults before flashing the new firmware.
If you are not able to build the device yourself, please send me a pm or email. I can deliver complete sets.
https://link.marktplaats.nl/m1678038347
1. Update your Toon
2. Flash a Wemos D1 Mini with the .bin (see link below)
3. Install the app from the toonstore
4. Start the Wemos and select wifi Autoconnect and goto 192.168.4.1
5. Fill in your wifi credentials at the portal and select a static IP adress
6. Select your regular WIFI
7. Goto http://esp-toonwater.local or the selected static ip and click "instellen and "opslaan"".
8. On toon install the app toonWater.
9. On toon Install a new tile “water TXT” from the section Algemeen.
10. On Toon click the new tile and go to the settings, fill in the Wemos IP adress and the current water counter value.
11. Click save
parts:
sensor : https://nl.aliexpress.com/item/32880606083.html
wemos :https://nl.aliexpress.com/item/4000037046508.html
mounting: to mount the sensor i have used a stauff 12 mm block which i taped to a acryl glass plate. The acryl glass has been clamped to the water meter. The tip of the sensor has been grinded a bit to take ab. 1mm of. This way it gets a little closer to the "wheel" of the meter.
ESP part can be found here:
download latest file here
*********** LET OP: software is niet bestemd voor verkoop ! **************
TO BUILD:
Connections:
Sensor Black ----> Wemos D2
Sensor Brown ----> Wemos +5V
Sensor Blue ----> Wemos ground (g)
To flash the bin to wemos. Read here:
https://github.com/oepi-loepi/water_ESP_part
As bonus: from the setup menu (wemos) you can also fill in Domoticz credentials. Create a water flow meter and a regular (!) counter (so 2x IDX)
For HA users:
The json output is written to /water.html like this:
{"waterflow":"0","waterquantity":"2295565"}
So you can add sensors in HA like this:
sensor:
- platform: rest
resource: http://192.168.1.130/water.html
name: Waterflow
value_template: "{{ value_json.waterflow}}"
unit_of_measurement: "l/m"
sensor:
- platform: rest
resource: http://192.168.1.130/water.html
name: Watermeter
value_template: "{{ value_json.waterquantity | float / 1000 }}"
unit_of_measurement: "M3"
IMPORTANT: Wemos program setup requires to set a STATIC (FIXED) ip adress. NOT DHCP
**** LET OP: software is niet bestemd voor verkoop ! **************
SOFTWARE UPDATE TO 1.4.35. To flash this new version first flash 4 mb blank of reset to factory defaults before flashing the new firmware.
If you are not able to build the device yourself, please send me a pm or email. I can deliver complete sets.
https://link.marktplaats.nl/m1678038347
1. Update your Toon
2. Flash a Wemos D1 Mini with the .bin (see link below)
3. Install the app from the toonstore
4. Start the Wemos and select wifi Autoconnect and goto 192.168.4.1
5. Fill in your wifi credentials at the portal and select a static IP adress
6. Select your regular WIFI
7. Goto http://esp-toonwater.local or the selected static ip and click "instellen and "opslaan"".
8. On toon install the app toonWater.
9. On toon Install a new tile “water TXT” from the section Algemeen.
10. On Toon click the new tile and go to the settings, fill in the Wemos IP adress and the current water counter value.
11. Click save
parts:
sensor : https://nl.aliexpress.com/item/32880606083.html
wemos :https://nl.aliexpress.com/item/4000037046508.html
mounting: to mount the sensor i have used a stauff 12 mm block which i taped to a acryl glass plate. The acryl glass has been clamped to the water meter. The tip of the sensor has been grinded a bit to take ab. 1mm of. This way it gets a little closer to the "wheel" of the meter.
ESP part can be found here:
download latest file here
*********** LET OP: software is niet bestemd voor verkoop ! **************
TO BUILD:
Connections:
Sensor Black ----> Wemos D2
Sensor Brown ----> Wemos +5V
Sensor Blue ----> Wemos ground (g)
To flash the bin to wemos. Read here:
https://github.com/oepi-loepi/water_ESP_part
As bonus: from the setup menu (wemos) you can also fill in Domoticz credentials. Create a water flow meter and a regular (!) counter (so 2x IDX)
For HA users:
The json output is written to /water.html like this:
{"waterflow":"0","waterquantity":"2295565"}
So you can add sensors in HA like this:
sensor:
- platform: rest
resource: http://192.168.1.130/water.html
name: Waterflow
value_template: "{{ value_json.waterflow}}"
unit_of_measurement: "l/m"
sensor:
- platform: rest
resource: http://192.168.1.130/water.html
name: Watermeter
value_template: "{{ value_json.waterquantity | float / 1000 }}"
unit_of_measurement: "M3"
IMPORTANT: Wemos program setup requires to set a STATIC (FIXED) ip adress. NOT DHCP
**** LET OP: software is niet bestemd voor verkoop ! **************