From d6d131c1ffb50d36815110da5b5eda4751aa43f7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 14 Jan 2024 17:08:35 -0500 Subject: [PATCH] Add warning to wife's presence flow function --- presence/tina-processing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/presence/tina-processing.js b/presence/tina-processing.js index 803cfa2..3a7c065 100644 --- a/presence/tina-processing.js +++ b/presence/tina-processing.js @@ -3,12 +3,13 @@ const workEndZone = states['binary_sensor.tina_work_end_zone'].state const tinawork = msg.tinawork if (tinawork === 'on' && workEndZone === 'on') { - node.status({fill:"green",shape:"dot",text:"Activated"}); + node.status({fill:"green",shape:"dot",text:"Activated"}) return[msg,null] } else if (tinawork === 'off') { - node.status({fill:"yellow",shape:"dot",text:"No Work Today"}); + node.status({fill:"yellow",shape:"dot",text:"No Work Today"}) return null } else { - node.status({fill:"red",shape:"ring",text:"We fucked up"}); + node.status({fill:"red",shape:"ring",text:"We fucked up"}) + node.warn("Tina presence flow encountered a situation we did not account for") return[null,msg] } \ No newline at end of file