From 8973cc1256bef2b724174fd7c121b28ded4097ce Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Wed, 26 May 2021 15:51:33 +0200 Subject: [PATCH] Example graph commands in conf.json. --- conf.json | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) 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" } + } } -- 2.34.1