flows work + network UI improvements

This commit is contained in:
Jokob-sk
2023-08-02 08:02:41 +10:00
parent 1101bc9477
commit 58bb740e48
12 changed files with 652 additions and 11 deletions

View File

@@ -0,0 +1,63 @@
{
"name":"apply_template",
"triggers": [
{
"type": "new",
"object":
{
"type": "db.row",
"target": "Devices"
}
}
],
"steps": [
{
"step_type":"wait",
"params": [
{
"days": 3,
"hours": 0,
"minutes": 0,
"seconds": 0
}
]
},
{
"step_type":"condition",
"params": [
{
"left": {
"value": "triggers[0].object['dev_NewDevice']",
"use_quotes": true,
"js_template": "'{value}'.toString()"
},
"operator": {
"value" : "==",
"data_type": "boolean"
},
"right": {
"value": true,
"use_quotes": false,
"js_template": "'{value}'.toString()"
}
}
]
},
{
"step_type":"action",
"params": [
{
"type": "plugin",
"params":
{
"unique_prefix": "KNWN",
"override":{
}
}
}
]
}
]
}