gt1000 pro image test
In this post, you'll learn how to set up a Flow to monitor a water well, for example. I'll take you through the setup step by step, but there's also a finished image at the end of the post.

Device Setup

If you are here, we expect you to have already created an account and connected your device. If you haven't done this, you can click on guide or on register

If you need to name various outputs from your device, you can do so by clicking on the device under devices

Log

Personally, I like to see logs so I can go back in the data and possibly make an overview of the year and see when and how often an incident happens. To create a log, we need to go to logs and create a new one at the bottom of the button and name it. 

Du kan oprette alle de logs du skal bruge hvis du ønsker at lave noget SoC(Seperation of Concern). F.eks. kunne man ønske sig at man logger hvornår vandet er for højt i en log så det er for sig selv. Dermed kan vi lave en log til f.eks. enhedens status på de forskellige ting, så som powersignal and last_update.

Read more about logs here

Dashboard

This requires us to briefly open our Dashboard Page. We want to be able to see the status of e.g. water condition, if power is on, signal worthy and last_update. Here you can decide for yourself what you want - a dashboard isn't a necessity, but it's a nice thing to have from time to time.

  1. Tap on the edit up in the top right corner.
  2. Click on the number 2 icon on the right side.
    This should give you a "My Widget" 
  3. Then click on the cog - then give your widget a name e.g. "Power".
  4. Select a Variable
    If you don't have a variable, you can simply create one by pressing "Create New" and naming it. I would advise creating a "system" for how you name it if you need it for something bigger or expect a lot of variables. 
  5. Once this is done, press the cross in the top right column.
  6. After that Saves in the top right corner.

If you want to see a log in your Dashboard, it's the third last icon - then just select which log you want to show. 

Read more about Dashboard here

Flow

In this point, logs are not a necessity, same with Send SMS - This is what is often used but may not be necessary in your case. You can read more about the different nodes and see what suits you best.

  1. Inside the flow, open Devices and drag the device's "IN" out.
  2. We need a Not Gate, Pulse, Toggle and an "OUT" from Devices
  3. IN 1" must be drawn to our Not Gate, Then we need to subtract Emergency Gate to Pulse, then to Toggle(on) and finally into buzzer.
  4. Go back to Emergency Gate and drag an extra string to the LED on "OUT".
  5. Pull one Write To Log get out and relax "IN 1″ Up to it. Select your log and write what you want it to say.
  6. Step 2 "Send SMS" Nodes out, Read more about the node here. One node must be switched on "IN 1" and the other needs to be connected to our Not Gate. The one set to "IN 1" is for when the water is too high and the one set for our Emergency Gate is if the water is OK again.
  7. Make another extra Write To Log and drop it on our Emergency Gate

Then your flow should be up and running.

Read more about Flows and Nodes here

Ekstra

Flyderen vil altid væres “true” hvis vandet er okay. Hvis vandet ikke er okay så vil den gå i false. Dette kan være forskelligt hvis man ikke bruger flydere fra os af, grundet ledninger kan mulighvis have modsatte farver eller andre farver.  Den blå ledning går altid til 12V+ og den sorte ledning går til IN1

Floater Illustration
Share the Post:

Content