From 0db67b49b2a0c852b1cff34f93d047c6e4369d5c Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 29 Mar 2026 23:38:06 -0400 Subject: [PATCH] Reorganize climate watchdog slightly --- climate/emma-bedroom/watchdog.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/climate/emma-bedroom/watchdog.js b/climate/emma-bedroom/watchdog.js index 458cb17..093c5ae 100644 --- a/climate/emma-bedroom/watchdog.js +++ b/climate/emma-bedroom/watchdog.js @@ -14,8 +14,6 @@ if (ac === 'on' && allowed === 'on' && schedMode === 'AC' && coolingActive === ' proceed = true } -// - if (sleeping != 'on') { node.status({fill:'red',shape:'ring',text:'Emma not sleeping, watchdog disabled'}) return null @@ -24,10 +22,9 @@ if (sleeping != 'on') { return null } -const airconEntity = ['climate.emma_bedroom_aircon'] - // Gather relevant attributes from the aircon entity +const airconEntity = ['climate.emma_bedroom_aircon'] const airconState = msg.payload.state const airconAttributes = msg.payload.attributes const airconEco = airconAttributes['eco_mode']