Example graph commands in conf.json.
authorBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 26 May 2021 13:51:33 +0000 (15:51 +0200)
committerBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 26 May 2021 13:51:33 +0000 (15:51 +0200)
conf.json

index e03ac6629eca7246246850f7d6b3caffde1e6d68..a454cfb3003633870ed08921afe4c07176d0f4d9 100644 (file)
--- a/conf.json
+++ b/conf.json
     "Example State": {
         "plugin": "State"
     },
-    ...
+    "State to Graph On": {
+        "plugin": "Alias",
+        "from": { "sender": { "const": "Example State" },
+                  "state": { "const": true } },
+        "to": { "target": "Test Graph",
+                "command": "set",
+                "node": "testnode",
+                "guid": "0123456789",
+                "attribute": "testboolean",
+                "value": "1" }
+    },
+    "State to Graph Off": {
+        "plugin": "Alias",
+        "from": { "sender": { "const": "Example State" },
+                  "state": { "const": true } },
+        "to": { "target": "Test Graph",
+                "command": "set",
+                "node": "testnode",
+                "guid": "0123456789",
+                "attribute": "testboolean",
+                "value": "0" }
+    },
+    "Get from Graph": {
+        "plugin": "Alias",
+        "from": { "target": { "const": "Get from Graph" },
+                  "command": { "const": "execute" } },
+        "to": { "target": "Test Graph",
+                "command": "get",
+                "node": "testnode",
+                "guid": "0123456789",
+                "attribute": "testboolean" }
+    }
 }