Logic

AND Gate

And Gaten is a logic that can be used to check if several things are true to continue in the flow. A simple use case could be if you only want to receive an alarm if both inputs are TRUE. Then from your device you could put a connector from both inputs to an AND gate. Then the logic checks if both are true, if they are not, the output on the gate is FALSE.

OR Gete

The OR gate can be used to check if one of the states is TRUE. There are 2 inputs that it can look at, however, multiple gates can be combined if you want to look at multiple boolean inputs.

NOT Gate

The NOT gate can be used to invert a signal. For example, it could be a toggle switch that you want to invert the signal from NO to NC instead. Anything TRUE that enters the NOT gate becomes False, and anything False that enters the gate becomes True.

It is used a lot with power failure text messages, as it can give a "TRUE" if power goes false.

Value

Value allows you to add a static value into your flow.

It has different attributes so you can enter a desired value. It can be very useful together with Greater Than, Less Than and Is Equal.

It's also a good node to test the configuration before going into production.

The different attributes that can be selected: Boolean, Number, Text and Timestamp.

The value can be selected directly on the node and therefore has no inputs.

Previous Value

Previous Value allows you to use the last value and not the current one. 

The value is updated every time the device sends in new data.

For example, if you want to add a delay, you can use previous value together with an and gate. Then it will only send if both previous value and current value are (True).

Toggle

Toggle acts as an on/off switch. This is typically used for our water alarms, where you set the button on the device to stop the siren. 

Is NULL

The Is NULL node can be used to check if a value is NULL. Typically, a value will appear as NULL if there is an error in your flow or if data has not been processed correctly. Is NULL cannot be used to notify you if a boolean node is False, for example, but only if the value is NULL.

Condition

The Is NULL node can be used to check if a value is NULL. Typically, a value will appear as NULL if there is an error in your flow or if data has not been processed correctly. Is NULL cannot be used to notify you if a boolean node is False, for example, but only if the value is NULL.

Match

Match works just like the name sounds. In the node, you specify some "IDs" whereby you can create some value nodes with names and connect those names to the IDs you have created. 

Derefter kan man f.eks. koble en slider på fra dashboarded of bruge en “get variable” til at skifte id.

Match RegeX

Vi råder til at gøre brug af online redskaber såsom Ai eller andre muligheder.

Character Classes
. ethvert tegn undtagen linjeskift
\w \d \s bogstav, tal, mellemrum
\W \D \S ikke bogstav, tal, mellemrum
[abc] et af a, b eller c
^[abc] ikke a, b eller c
[a-g] tegn mellem a og g
Anchors
^abc$ start / slutning af strengen
\b \B ordgrænse / ikke-ordgrænse
Escaped Characters
\. \* \\ undsluppede specialtegn
\t \n \r tabulator, linjeskift, vognretur
Groups & Lookaround
(abc) fangstgruppe
\1 tilbagehenvisning til gruppe nr. 1
(?:abc) ikke-fangende gruppe
(?=abc) positivt forudblik
(?!abc) negativt forudblik
Quantifiers & Alternation
a* a+ a? 0 eller flere, 1 eller flere, 0 eller 1
a{5} a{2,} præcis fem, to eller flere
a{1,3} mellem én og tre
a+? a{2,}? match så få som muligt
ab|cd match ab eller cd

Billedet over RegeX /^(100|[1-9][0-9]?)$/. Denne regex tjekker tal uden 0 foran mellem 1 til 100.

Følgende OK: 1, 2, 3… 100
Følgende ikke OK: 0, 01, 02… 101

Dette billede bruger RegeX /^(223|243|299)$/, som tjekker om det input den får er præcist 223, 243 og 299. Dette gør det muligt at bruge en længere RegeX, og ikke flere match fælter.

Last updated