Flows + settings metadata work

This commit is contained in:
Jokob-sk
2023-07-23 09:43:12 +10:00
parent d7fb478794
commit e83a622152
5 changed files with 96 additions and 11 deletions

View File

@@ -0,0 +1,61 @@
{
"name":"unmark_new",
"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":
{
"name": "UNMRK_NEW",
"CMD": "db.row"
}
}
]
}
]
}