Device Setup
If you are here, we expect you have already created an account and connected your device. If you have not done this, you can click the 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 occurs. To make a log, we need to go under logs and thus create a new one at the bottom of the button and name it.
You can create all the logs you need if you want to do some SoC (Seperation of Concern). For example, you might want to log when the water is too high in a log so that it is for itself. This way we can create a log for example. the device's status on the different things, such as power, signal and last_update.
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.
- Press edit up top on the right.
- Click on the number 2 icon on the right side.
This should give you a “My Widget” - Then click on the gear wheel – then give your widget a name, for example “Power”.
- Choose a Variable
If you don't have a variable, you can simply create one by clicking “Create New” and naming it. I would advise creating a “system” for how you create names if you are going to use it for something bigger or expect a lot of variables. - When done, press the cross at the top of the column on the right.
- Then Saw top right corner.
If you would like to see a log in your Dashboard, it is the third last icon - then you just choose which log you would like to display.
Flow
In this point, logs are not a necessity, the 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.
- Inside the flow, open Devices and pull the device “IN” out.
- We need a Not Gate, Puls, Toggle and an "OUT" from Devices
- “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.
- Go back to Emergency Gate and drag an extra string to the LED on "OUT".
- 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.
- Step 2 "Send SMS" Nodes out, Read more about the node here. One node needs to be connected "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.
- 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
Extra
The float will always be true if the water is okay. If the water is not okay then it will go false. This can be different if you don't use floaters from us, because the wires may have opposite colors or different colors. The blue wire always goes to 12V+ and the black wire goes to IN1