From 4178d55075e5159f9c8bde447c2cb9c5195e6b1e Mon Sep 17 00:00:00 2001 From: Gitea Actions Date: Fri, 24 Oct 2025 20:19:14 +0000 Subject: [PATCH] Auto-update blog content from Obsidian: 2025-10-24 20:19:14 --- content/post/6-ac-automation-home-assistant-node-red.fr.md | 2 +- content/post/6-ac-automation-home-assistant-node-red.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/post/6-ac-automation-home-assistant-node-red.fr.md b/content/post/6-ac-automation-home-assistant-node-red.fr.md index 36c465a..a1ca51c 100644 --- a/content/post/6-ac-automation-home-assistant-node-red.fr.md +++ b/content/post/6-ac-automation-home-assistant-node-red.fr.md @@ -488,7 +488,7 @@ function isModeEligible(mode, temps, humidity, thresholds, currentMode) { // For heat mode (inverted logic) if (mode === "heat") { if (!isCurrent) { - const minStart = Math.min(...Object.values(threshold.start)); + const minStart = Math.max(...Object.values(threshold.start)); return tempForCheckStart < minStart; } else { return tempForCheckStop < threshold.stop; diff --git a/content/post/6-ac-automation-home-assistant-node-red.md b/content/post/6-ac-automation-home-assistant-node-red.md index 997f9ac..7b49f43 100644 --- a/content/post/6-ac-automation-home-assistant-node-red.md +++ b/content/post/6-ac-automation-home-assistant-node-red.md @@ -486,7 +486,7 @@ function isModeEligible(mode, temps, humidity, thresholds, currentMode) { // For heat mode (inverted logic) if (mode === "heat") { if (!isCurrent) { - const minStart = Math.min(...Object.values(threshold.start)); + const minStart = Math.max(...Object.values(threshold.start)); return tempForCheckStart < minStart; } else { return tempForCheckStop < threshold.stop;