From: vincent Date: Sun, 23 Jan 2022 13:41:30 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aa12b18fa62240cc29fccae7f6e57bb150219f23;p=tortuga-home.git . --- 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);