Rearrange outputs on timer-finished function for stairwell
This commit is contained in:
@ -19,13 +19,13 @@ if (goodnight === 'on') {
|
|||||||
msg.hallway = hallwayAction
|
msg.hallway = hallwayAction
|
||||||
|
|
||||||
// Turn off Stairwell LED Strip
|
// Turn off Stairwell LED Strip
|
||||||
node.send([msg,null])
|
node.send([null,null,msg])
|
||||||
|
|
||||||
// Hallway actions
|
// Hallway actions
|
||||||
if (hallwayAction === 'on') {
|
if (hallwayAction === 'on') {
|
||||||
msg.scene = hallwayScene
|
msg.scene = hallwayScene
|
||||||
node.status({fill:'green',shape:'dot',text:'Hallway ' + hallwayScene})
|
node.status({fill:'green',shape:'dot',text:'Hallway ' + hallwayScene})
|
||||||
node.send([null,null,msg])
|
node.send([msg,null,null])
|
||||||
} else if (hallwayAction === 'off') {
|
} else if (hallwayAction === 'off') {
|
||||||
node.status({fill:'green',shape:'dot',text:'Hallway Off'})
|
node.status({fill:'green',shape:'dot',text:'Hallway Off'})
|
||||||
node.send([null,msg,null])
|
node.send([null,msg,null])
|
||||||
|
Reference in New Issue
Block a user