From 013b482f1866e10c48063b408e5560faf598180c Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 23 Mar 2025 01:06:15 -0400 Subject: [PATCH] Relocated outdoor temperatures in global context --- climate/master-bedroom/processing.js | 2 +- climate/master-bedroom/shower-off.js | 2 +- climate/master-bedroom/shower-on.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/climate/master-bedroom/processing.js b/climate/master-bedroom/processing.js index f51e719..6ba5311 100644 --- a/climate/master-bedroom/processing.js +++ b/climate/master-bedroom/processing.js @@ -4,7 +4,7 @@ node.log("Master Bedroom Climate: Processing Started") const states = global.get('homeassistant.homeAssistant.states') const allowed = states['input_boolean.master_bedroom_climate_protocol'].state const ac = global.get('mb_aircon_installed', "diskCon") -const temp = global.get("tempStr") +const temp = global.get("outdoorTemp.tempStr") const payload = msg.payload const vacation = states['input_boolean.vacation_mode'].state const dayTemp = states['input_number.master_bedroom_daytime_temp'].state diff --git a/climate/master-bedroom/shower-off.js b/climate/master-bedroom/shower-off.js index f6ae06a..2cca007 100644 --- a/climate/master-bedroom/shower-off.js +++ b/climate/master-bedroom/shower-off.js @@ -1,6 +1,6 @@ const states = global.get('homeassistant.homeAssistant.states') const ac = states['input_boolean.master_bedroom_aircon_installed'].state -const temp = global.get('tempStr') +const temp = global.get('outdoorTemptempStr') const threshold = states['input_number.master_bedroom_aircon_run_threshold'].state const dayTemp = states['input_number.master_bedroom_daytime_temp'].state const nightTemp = states['input_number.master_bedroom_night_temp'].state diff --git a/climate/master-bedroom/shower-on.js b/climate/master-bedroom/shower-on.js index 0d89496..e2b7dbe 100644 --- a/climate/master-bedroom/shower-on.js +++ b/climate/master-bedroom/shower-on.js @@ -1,6 +1,6 @@ const states = global.get('homeassistant.homeAssistant.states') const ac = states['input_boolean.master_bedroom_aircon_installed'].state -const temp = global.get('tempStr') +const temp = global.get('outdoorTemp.tempStr') const threshold = states['input_number.master_bedroom_aircon_run_threshold'].state const nightTemp = states['input_number.master_bedroom_night_temp'].state const bedTemp = states['input_number.master_bedroom_bedtime_temp'].state