Toon App: Water

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Toon App: Water

Postby westpat » Fri Feb 12, 2021 6:47 pm

Thank you for this great app! I have been waiting for this.
I use the analog gas sensor from Toon to read the water usage and produce JSON output with Node-red on a Raspberry Pi.

but here is my problem, I am unable to get into the configscreen to set the IP address and initial reading.
Every water tile I click brings me to the graph screen.

How do get into the configscreen?
Toon: pn=6500-1400-2001, sw=5.39.7
Ketelmodule: pn=6500-1200-4801, fw=37
Meetmodule: pn=6500-1102-0401, sw=35/37
westpat
Starting Member
Starting Member
 
Posts: 4
Joined: February 2021

Re: Toon App: Water

Postby Arnout2000 » Fri Feb 12, 2021 8:54 pm

Ali is very slow in sending the parts. Days after ordering still not sent. I am impatient. :roll:

The Wemos is easy to find in NL, but does anyone have a link to a Webshop who can deliver the sensor?
Arnout2000
Starting Member
Starting Member
 
Posts: 49
Joined: October 2020

Re: Toon App: Water

Postby oepi-loepi » Fri Feb 12, 2021 8:57 pm

Arnout2000 wrote:Ali is very slow in sending the parts. Days after ordering still not sent. I am impatient. :roll:

The Wemos is easy to find in NL, but does anyone have a link to a Webshop who can deliver the sensor?


Not cheap. But a user is also testing with the optical sensor which came with toon: https://www.domoticaforum.eu/viewtopic. ... =30#p97119
oepi-loepi
Member
Member
 
Posts: 269
Joined: February 2019

Re: Toon App: Water

Postby Jasper » Fri Feb 12, 2021 8:59 pm

Arnout2000 wrote:Ali is very slow in sending the parts. Days after ordering still not sent. I am impatient. :roll:

The Wemos is easy to find in NL, but does anyone have a link to a Webshop who can deliver the sensor?


Maybe because you are ordering during Chinese New Year, they don't work much during their holidays.
Jasper
Member
Member
 
Posts: 72
Joined: June 2019

Re: Toon App: Water

Postby Jasper » Fri Feb 12, 2021 9:02 pm

https://www.benselectronics.nl/inductie ... 7sQAvD_BwE

Wel eens iets gekocht daar, persoonlijk denk ik dat heel veel gewoon van AliExpress komt. Kan het mis hebben maar kijk zelf maar even op z'n website rond.
Jasper
Member
Member
 
Posts: 72
Joined: June 2019

Re: Toon App: Water

Postby oepi-loepi » Fri Feb 12, 2021 9:13 pm

Jasper wrote:https://www.benselectronics.nl/inductieve-proximity-sensor-npn.html?source=googlebase&gclid=CjwKCAiA65iBBhB-EiwAW253W9gsW8hGruVV8iWV_vke2_qGYOv_Le_aT2Br9qr1KkBallykrGkqUBoCm7sQAvD_BwE

Wel eens iets gekocht daar, persoonlijk denk ik dat heel veel gewoon van AliExpress komt. Kan het mis hebben maar kijk zelf maar even op z'n website rond.


Goed gevonden echter helaas niet de 5 vdc versie. Kan wel maar dan heb je een externe voeding voor de sensor nodig.
oepi-loepi
Member
Member
 
Posts: 269
Joined: February 2019

Re: Toon App: Water

Postby Jasper » Fri Feb 12, 2021 9:16 pm

Ik heb precies dezelfde, ook 6v en werkt prima op 5v
Jasper
Member
Member
 
Posts: 72
Joined: June 2019

Re: Toon App: Water

Postby oepi-loepi » Fri Feb 12, 2021 9:33 pm

Jasper wrote:Ik heb precies dezelfde, ook 6v en werkt prima op 5v


Ok, bij mij niet maar prima. Dan had ik mss een defecte..Als je toch moet wachten op ali dan zou ik toch de 5 vdc zoals in de link adviseren. Gewoon voor de zekerheid.
oepi-loepi
Member
Member
 
Posts: 269
Joined: February 2019

Re: Toon App: Water

Postby Jasper » Fri Feb 12, 2021 9:56 pm

Kan ook net het vermogen van de adapter zijn natuurlijk.

Beter wachten dan op een supported versie.
Jasper
Member
Member
 
Posts: 72
Joined: June 2019

Re: Toon App: Water

Postby westpat » Fri Feb 12, 2021 9:58 pm

westpat wrote:Thank you for this great app! I have been waiting for this.
I use the analog gas sensor from Toon to read the water usage and produce JSON output with Node-red on a Raspberry Pi.

but here is my problem, I am unable to get into the configscreen to set the IP address and initial reading.
Every water tile I click brings me to the graph screen.

How do get into the configscreen?


Figured it out and feeling a bit stupid about it! :oops:
When adding the water tiles for "Nu" and "Vandaag", choose the ones from the "Algemeen" section and not the ones from the "Water" section.

The optical gas sensor that came with Toon, now has been given a new life as a watermeter reader! :)
Toon: pn=6500-1400-2001, sw=5.39.7
Ketelmodule: pn=6500-1200-4801, fw=37
Meetmodule: pn=6500-1102-0401, sw=35/37
westpat
Starting Member
Starting Member
 
Posts: 4
Joined: February 2021

Re: Toon App: Water

Postby Arnout2000 » Fri Feb 12, 2021 10:14 pm

Jasper wrote:
Arnout2000 wrote:Ali is very slow in sending the parts. Days after ordering still not sent. I am impatient. :roll:

The Wemos is easy to find in NL, but does anyone have a link to a Webshop who can deliver the sensor?


Maybe because you are ordering during Chinese New Year, they don't work much during their holidays.


Good point! Hadn’t thought of that.
Arnout2000
Starting Member
Starting Member
 
Posts: 49
Joined: October 2020

Re: Toon App: Water

Postby oepi-loepi » Fri Feb 12, 2021 10:19 pm

westpat wrote:
The optical gas sensor that came with Toon, now has been given a new life as a watermeter reader! :)


Great, i will search for such sensor tomorrow and will check. Could you plae send met some pictures and a description how you connected the sensor?
oepi-loepi
Member
Member
 
Posts: 269
Joined: February 2019

Re: Toon App: Water

Postby Daniel » Fri Feb 12, 2021 10:57 pm

@oepi loepie On you Toon I see in "grafiek stroom gas water" But my Toon does not show the water in the graph screen.
Firmware is 5.39.7
Daniel
Member
Member
 
Posts: 57
Joined: March 2019

Re: Toon App: Water

Postby westpat » Sat Feb 13, 2021 12:41 am

Short version of using a Toon optical (gas)sensor to read your watermeter.
The full description and flow source can be found here: flows.nodered.org

Place de optical sensor on the water meter (I have a sensus 620 from Vitens):
Image
It does take some tinkering to get it positioned right, but the way it is positioned in above picture works for me.

The 3.5 mm jack electrical assignment:
Image
I used a 3.5 mm female jack connector and soldered some Dupont jumper wires onto it, with the colors in the picture.
Then just plug the original white wire that came with the sensor in the sensor and the female jack.

Connect jumper wires to the Pi:
Image
Using Dupont jumper wires might not be the best kind of wires to use, since they are very thin and are susceptible to electrical interference causing false readings.

Now I use Node-red to receive and convert the information from the sensor, but that's just how I do it.

In Node-red add a pi gpiod node and configure like below:
Image
Make sure you set the resistor to Pull-up and give enough Debounce time.
Change the host to whatever IP address your Pi is running at or use the rpi-gpio in node if the pins are local to Node-red.

This will give you a 1 or 0 as output from the node everytime the metal part on the wheel in the meter passes along the optical sensor.
The sensor will generate a pulse when going from red plastic to metal and vice versa.
This means that 2 pulses equal 1 liter of water, so remember to divide the number of pulses by 2 to get water consumption in liters.

I also incorporated the P1 data into my Node-red flow, which I need to convert to DSMR 2.2 to feed my Meetmodule.
And since we have all the data at hand, why not output it over a TCP connection and MQTT as well.
This is what my flow looks like:
Image

I don't think this forum is the right place to go into detail about this flow, but this is what happens:
  • The PIN 7 feeds the counterGlobal with pulses and these are added up to the meter total and stored in memory
  • From that total the previous reading from 15 seconds ago is subtracted, giving us the usage in liters
  • This usage is multiplied by 4 to get a flowrate of liters per minute, which is also stored in memory
  • Whenever the http in node receives a request, the stored values are returned as a JSON string: {"waterflow":"0","waterquantity":"438730"}

So besides feeding Toon with data this way, I can feed any number of devices with data.
Like for example Domoticz:
Image
Or my Node-red Dashboard:
Image

That's all folks! :)
Last edited by westpat on Tue Feb 16, 2021 4:42 pm, edited 1 time in total.
Toon: pn=6500-1400-2001, sw=5.39.7
Ketelmodule: pn=6500-1200-4801, fw=37
Meetmodule: pn=6500-1102-0401, sw=35/37
westpat
Starting Member
Starting Member
 
Posts: 4
Joined: February 2021

Re: Toon App: Water

Postby oepi-loepi » Sat Feb 13, 2021 9:19 am

Daniel wrote:@oepi loepie On you Toon I see in "grafiek stroom gas water" But my Toon does not show the water in the graph screen.
Firmware is 5.39.7


Did you do the app install, set the ip adress an did you click save on the configuration screen? The toon should restart and after that the tiles in. The water tab become visible. Select the grap with the 3 vertical bars and click that tile.
oepi-loepi
Member
Member
 
Posts: 269
Joined: February 2019

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron