Fix issues with lux threshold conditions

This commit is contained in:
2024-01-16 12:11:28 -05:00
parent a882871842
commit d644e3d8e0
5 changed files with 16 additions and 12 deletions

View File

@ -23,7 +23,7 @@ if (topic === 'motion' && block === false) {
node.send([msg,null,null])
} else if (payload === 'off') {
msg.duration = newDuration
node.status({fill:'red',shape:'ring',text:'Motion Off'})
node.status({fill:'red',shape:'ring',text:parseInt(duration) + ' minutes'})
node.send([null,msg,null])
}
} else if (topic === 'timer') {