From 9d5252c7e4d7c9e01b3eb878ecfe68d26676dcba Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 23 Mar 2025 13:44:51 -0400 Subject: [PATCH] Improve node status on Tina Work node in presence flow --- presence/tina-processing.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/presence/tina-processing.js b/presence/tina-processing.js index 3a7c065..5e1da8b 100644 --- a/presence/tina-processing.js +++ b/presence/tina-processing.js @@ -5,6 +5,9 @@ const tinawork = msg.tinawork if (tinawork === 'on' && workEndZone === 'on') { node.status({fill:"green",shape:"dot",text:"Activated"}) return[msg,null] +} else if (tinawork === 'on' && workEndZone === 'off') { + node.status({fill:"yellow",shape:"dot",text:"Not time to leave yet"}) + return null } else if (tinawork === 'off') { node.status({fill:"yellow",shape:"dot",text:"No Work Today"}) return null