From a599dee384e18eb1fd9256098b1b7e5bb91ca0ec Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 2 Oct 2023 23:09:07 -0400 Subject: [PATCH] Forgot to add node status to processing node for K's timer --- flows.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flows.json b/flows.json index 5a2f180..821df9f 100644 --- a/flows.json +++ b/flows.json @@ -6537,7 +6537,7 @@ "z": "4a8821853d4dd1ad", "g": "a46fc8e7e70ca893", "name": "Processing", - "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst timer = states['timer.kallen_timer'].state\n\n// Basic replacement for current entry flow\n\nif (timer === 'idle') {\n node.send([msg,null,null])\n} else if (timer === 'active') {\n node.send([null,msg,null])\n} else if (timer === 'paused') {\n node.send([null,null,msg])\n}", + "func": "const states = global.get('homeassistant.homeAssistant.states')\nconst timer = states['timer.kallen_timer'].state\n\n// Basic replacement for current entry flow\n\nif (timer === 'idle') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Start\"})\n node.send([msg,null,null])\n} else if (timer === 'active') {\n node.status({fill:\"yellow\",shape:\"dot\",text:\"Pause\"})\n node.send([null,msg,null])\n} else if (timer === 'paused') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Resume\"})\n node.send([null,null,msg])\n}", "outputs": 3, "timeout": 0, "noerr": 0,