From: Vincent Vanwaelscappel Date: Sun, 9 Jul 2023 15:43:05 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f7002fd6ef5bc2ef0db9f83408a982a7af613c9d;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1070515..5794efd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ - + diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index 0fcc1d1..13b9103 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -40,9 +40,8 @@ function cronOneLoop($cronmin) { cronHarmony($cronmin); cronInterface($cronmin); - if ($cronmin == 0) { - cronEcoMode($cronmin); - } + + cronEcoMode($cronmin); if ($cronmin % 5 == 0) { cronTranscode($cronmin); } @@ -97,7 +96,7 @@ function cronInsteon($cronmin) { function cronEcoMode($cronmin) { _logSection('Ecomode'); - ecoMode(null, false); + ecoMode(null, $cronmin % 15 === 0); } function cronTranscode($cronmin) { diff --git a/scripts/homeassistant_device_event.php b/scripts/homeassistant_device_event.php index 1c50158..de10350 100644 --- a/scripts/homeassistant_device_event.php +++ b/scripts/homeassistant_device_event.php @@ -9,9 +9,9 @@ $wcswitch = 'sensor.0x0c4314fffe7ce957_action'; $cubebureau = 'sensor.0x00158d00042d7082_action'; $switchBedroom = 'binary_sensor.switch_bedroom'; $cubeSDB = 'sensor.0x00158d0005c19a86_action'; -$cubeSalon1 = 'sensor.'; -$cubeSalon2 = 'sensor.'; -$cubeSalon3 = 'sensor.'; +$cubeSalon1 = 'sensor.0x00158d00029ba2b6_action'; +$cubeSalon2 = 'sensor.0x00158d00042dc656_action'; +$cubeSalon3 = 'sensor.0x00158d00058a55da_action'; switch ($_GET['id']) { @@ -36,6 +36,7 @@ switch ($_GET['id']) { case $cubeSalon3: $forceConfig = 'salon'; $action = 'cubeSalon'; + break; default: exit; }