Rearrange outputs on timer-finished function for stairwell
This commit is contained in:
@ -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])
|
||||
|
Reference in New Issue
Block a user