From: Benjamin Braatz Date: Wed, 26 May 2021 13:51:33 +0000 (+0200) Subject: Example graph commands in conf.json. X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=8973cc1256bef2b724174fd7c121b28ded4097ce;p=graphit%2Fcontrolpi-graph.git Example graph commands in conf.json. --- diff --git a/conf.json b/conf.json index e03ac66..a454cfb 100644 --- a/conf.json +++ b/conf.json @@ -15,5 +15,36 @@ "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" } + } }