From aa12b18fa62240cc29fccae7f6e57bb150219f23 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 23 Jan 2022 14:41:30 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 21 +++++++++++---------- scripts/cron/cron.php | 1 + scripts/lib/switchbot.php | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 132c2a8..e107af3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,8 @@ - + + diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index 55620f6..aef371b 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -56,6 +56,7 @@ function cronOneLoop($cronmin) function cronHotWater($cronmin) { + _logSection('Hot water'); hotwaterCheckMode(); } diff --git a/scripts/lib/switchbot.php b/scripts/lib/switchbot.php index dfe0001..c25c349 100644 --- a/scripts/lib/switchbot.php +++ b/scripts/lib/switchbot.php @@ -38,7 +38,7 @@ function hotwaterCheckMode() $hot = '0'; } else if ($ecomode == '1') { $h = date('G'); - $hot = ($h > 6 && $h < 10) ? '1' : '0'; + $hot = ($h >= 6 && $h <= 9) ? '1' : '0'; } } hotwater($hot); -- 2.39.5