Rearrange outputs on timer-finished function for stairwell

This commit is contained in:
2024-01-24 14:20:48 -05:00
parent da15236ace
commit abc6857968

View File

@ -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])