From: vincent Date: Wed, 13 Apr 2022 06:58:50 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7d659d5e24df32fd35fc2ad6272f3de783fbd57f;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8e401c3..9e279d8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,8 @@ - + - diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 8b29ed2..c27713a 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -653,7 +653,7 @@ $scenes = [ 'home/off' => [ ['type' => 'scene', 'scene' => 'home/hueoff'], ['type' => 'ecomode', 'mode' => '2'], - //['type' => 'scene', 'scene' => 'cuisine/off'], + ['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'salon/off'], ['type' => 'scene', 'scene' => 'cour/off'], ['type' => 'scene', 'scene' => 'bureau/base/off'], @@ -675,6 +675,7 @@ $scenes = [ ], 'home/welcome' => [ ['type' => 'scene', 'scene' => 'cuisine/on'], + ['type' => 'scene', 'scene' => 'cuisine/hotte/on'], ['type' => 'scene', 'scene' => 'salon/on'], ['type' => 'scene', 'scene' => 'bureau/auto'], ['type' => 'scene', 'scene' => 'chambre/auto'], @@ -730,7 +731,6 @@ $scenes = [ 'wc/vmc/off' => [ ['type' => 'domoticz', 'device' => '6449', 'command' => false, 'priority' => true], ], - 'sdb/ampli/on' => [ ['type' => 'domoticz', 'device' => '476', 'command' => true, 'priority' => true], ], @@ -779,13 +779,25 @@ $scenes = [ 'salon/freebox/off' => [ ['type' => 'domoticz', 'device' => '1439', 'command' => false], ], + 'cuisine/hotte/on' => [ + ['type' => 'domoticz', 'scene' => 52, 'command' => true], + ], + 'cuisine/hotte/off' => [ + ['type' => 'domoticz', 'scene' => 52, 'command' => false], + ], + 'cuisine/base/on' => [ + ['type' => 'hue', 'group' => $cuisine, 'scene' => 'UDlNCnVQjTHZJFF'], + ], 'cuisine/on' => [ - ['type' => 'hue', 'group' => $cuisine, 'scene' => 'UDlNCnVQjTHZJFF'] + ['type' => 'scene', 'scene' => 'cuisine/hotte/on'], + ['type' => 'scene', 'scene' => 'cuisine/base/on'], ], 'cuisine/tamise' => [ + ['type' => 'scene', 'scene' => 'cuisine/hotte/on'], ['type' => 'hue', 'group' => $cuisine, 'scene' => '44yXoQdJErFPksE'] ], 'cuisine/off' => [ + ['type' => 'scene', 'scene' => 'cuisine/hotte/off'], //['type' => 'hue', 'group' => $cuisine, 'scene' => array('on' => false, 'brightness' => 0)] ], 'cuisine/toaster/toggle' => [ @@ -1210,7 +1222,7 @@ function updateCuisine() { $salon = getState('salon', 'off'); if ($salon === 'on' || $salon === 'off' || $salon === 'tamise') { - execScene('cuisine/on'); + execScene('cuisine/base/on'); } else if ($salon == 'cinema') { execScene('cuisine/tamise'); } diff --git a/scripts/lib/shield.php b/scripts/lib/shield.php index 4395bd5..b0321ad 100644 --- a/scripts/lib/shield.php +++ b/scripts/lib/shield.php @@ -182,7 +182,7 @@ function shieldMyCanalConnect($device = null, $force = false) { $d = getDevice($device); $state = 'mycanallastconnect_' . $d['id']; - $limit = time() - 3600 * 24 * 2; + $limit = time() - 3600 * 24 * 8; if (!$force && getState($state, 0) > $limit) { return; }