From abc68579689032a6b45b75218e57900dacb3cbd8 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 24 Jan 2024 14:20:48 -0500 Subject: [PATCH] Rearrange outputs on timer-finished function for stairwell --- second-floor-lighting/stairwell/timer-finished.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second-floor-lighting/stairwell/timer-finished.js b/second-floor-lighting/stairwell/timer-finished.js index b22f5f2..9cf4d4c 100644 --- a/second-floor-lighting/stairwell/timer-finished.js +++ b/second-floor-lighting/stairwell/timer-finished.js @@ -19,13 +19,13 @@ if (goodnight === 'on') { msg.hallway = hallwayAction // Turn off Stairwell LED Strip -node.send([msg,null]) +node.send([null,null,msg]) // Hallway actions if (hallwayAction === 'on') { msg.scene = hallwayScene node.status({fill:'green',shape:'dot',text:'Hallway ' + hallwayScene}) - node.send([null,null,msg]) + node.send([msg,null,null]) } else if (hallwayAction === 'off') { node.status({fill:'green',shape:'dot',text:'Hallway Off'}) node.send([null,msg,null])