Small adjustment in Kallen's timer flow

This commit is contained in:
2025-03-23 04:36:42 -04:00
parent f32c9462e2
commit ea3ba2e77c

View File

@ -7412,8 +7412,9 @@
"z": "4a8821853d4dd1ad", "z": "4a8821853d4dd1ad",
"g": "a46fc8e7e70ca893", "g": "a46fc8e7e70ca893",
"name": "Lights?", "name": "Lights?",
"func": "if (msg.lights === 'on') {\n if (msg.room === 'Kallen Bedroom') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Lights Controlled\"});\n return[msg,null]\n } else if (msg.room === 'Living Room') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Lights Controlled\"});\n return[null,msg]\n } else {\n node.status({fill:\"red\",shape:\"ring\",text:\"N/A in \" + msg.room});\n return null\n }\n} else {\n node.status({fill:\"red\",shape:\"ring\",text:\"Disabled\"});\n return null\n}", "func": "if (msg.lights === 'on') {\n if (msg.room === 'Kallen Bedroom') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Lights Controlled\"})\n return[msg,null]\n } else if (msg.room === 'Living Room') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Lights Controlled\"})\n return[null,msg]\n } else {\n node.status({fill:\"red\",shape:\"ring\",text:`N/A in ${msg.room}`})\n return null\n }\n} else {\n node.status({fill:\"red\",shape:\"ring\",text:\"Disabled\"})\n return null\n}",
"outputs": 2, "outputs": 2,
"timeout": "",
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",