From: vincent Date: Fri, 14 Jan 2022 08:38:31 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6c640f3b0e513faab38977ac7086016671927858;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0d7f7ee..a589574 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,10 @@ - + + + + diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index 7646f6e..f818101 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -18,7 +18,6 @@ function cronOneLoop($cronmin) cronVelib($cronmin); cronGuest($cronmin); cronShield($cronmin); - } if ($cronmin % 10 == 0) { cronSqueezeFavorites($cronmin); diff --git a/scripts/domoticz_device_event.php b/scripts/domoticz_device_event.php index e23c3ce..701fa9d 100644 --- a/scripts/domoticz_device_event.php +++ b/scripts/domoticz_device_event.php @@ -4,7 +4,7 @@ define('TIMELIMIT', 1); $_GET['im'] = '5'; $wcswitch = 6448; -$cubesalon = ['6844']; +$cubesalon = ['6844', '6846', '6848']; if (in_array($_GET['device'], $cubesalon)) { $forceConfig = 'salon'; @@ -79,7 +79,7 @@ if ($_GET['device'] == 480) { execScene('bureau/rideaux/toggle'); break; case 'Flip_180': - execScene('bureau/fan/toggle'); + execScene('bureau/auto'); break; case 'Free_Fall': execScene('bureau/off'); diff --git a/scripts/lib/ecomode.php b/scripts/lib/ecomode.php index cf914dc..5f9227e 100644 --- a/scripts/lib/ecomode.php +++ b/scripts/lib/ecomode.php @@ -52,6 +52,11 @@ function getNightMode() return false; } } + if ($device === 'wc') { + if (getState('bureau_gradient') !== 'off') { + return false; + } + } if ($device === 'entree' || $device === 'cuisine') { $lights = [15, 18, 1, 58, 59, 57, 56, 55, 37]; $hueLights = getHueInstance()->getLights(); @@ -61,7 +66,6 @@ function getNightMode() return false; } } - } return getState('night') == '1'; }