From: Benjamin Braatz Date: Fri, 5 Mar 2021 22:40:38 +0000 (+0100) Subject: Adapt to changes in 'State' interface X-Git-Tag: v0.3.0~41 X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=d0df29b7e813aac3a5804c1b89656dcd356fb746;p=graphit%2Fcontrolpi-wsserver.git Adapt to changes in 'State' interface --- diff --git a/conf.json b/conf.json index 740d854..10b4afc 100644 --- a/conf.json +++ b/conf.json @@ -13,13 +13,13 @@ }, "Delay Start after On": { "plugin": "Alias", - "from": { "sender": "Example State", "state": true, "changed": true }, + "from": { "sender": "Example State", "event": "changed", "state": true }, "to": { "target": "Off Delay", "command": "wait" } }, "State Off after Delay": { "plugin": "Alias", "from": { "sender": "Off Delay", "event": "finished" }, - "to": { "target": "Example State", "command": "set state", "state": false } + "to": { "target": "Example State", "command": "set state", "new state": false } }, "Debug Logger": { "plugin": "Log", diff --git a/example-client.py b/example-client.py index 6359db5..367666e 100644 --- a/example-client.py +++ b/example-client.py @@ -6,7 +6,7 @@ import websockets async def test_commands(websocket): commands = [{'target': 'Example State', - 'command': 'set state', 'state': True}, + 'command': 'set state', 'new state': True}, {'target': 'Example State', 'command': 'get state'}] for command in commands: