Sleep switch off will cancel Emma's door alert
This commit is contained in:
@ -86,7 +86,7 @@ if (topic === 'door' && payload === 'on') {
|
|||||||
} else if (topic === 'timer') {
|
} else if (topic === 'timer') {
|
||||||
node.status({fill:'green',shape:'dot',text:'Timer Finished'})
|
node.status({fill:'green',shape:'dot',text:'Timer Finished'})
|
||||||
node.send([alertTTS,msg,null])
|
node.send([alertTTS,msg,null])
|
||||||
} else if (topic === 'button') {
|
} else if (topic === 'cancel') {
|
||||||
node.status({fill:'green',shape:'dot',text:'Cancel Button Pressed'})
|
node.status({fill:'green',shape:'dot',text:'Cancel Button Pressed'})
|
||||||
node.send([null,null,msg])
|
node.send([null,null,msg])
|
||||||
} else if (topic === 'door' && payload === 'off') {
|
} else if (topic === 'door' && payload === 'off') {
|
||||||
|
Reference in New Issue
Block a user