From: Vincent Date: Tue, 13 Oct 2020 10:00:39 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d6b302edb788b21966127b02f095368287249271;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2971d03..16c26b8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,8 @@ - - + + @@ -1266,11 +1267,11 @@ - - + + - + diff --git a/config/rooms.php b/config/rooms.php index 77337fb..4889999 100644 --- a/config/rooms.php +++ b/config/rooms.php @@ -1,6 +1,6 @@ 'Maison', 'salon' => 'Salon', 'chambre' => 'Chambre', 'bureau' => 'Bureau', 'sdb' => 'Salle de bain', 'cour' => 'Cour', 'wc' => 'WC'); +$rooms = array('home' => 'Maison', 'salon' => 'Salon', 'chambre' => 'Chambre', 'bureau' => 'Bureau', 'sdb' => 'Salle de bain', 'cour' => 'Cour', 'wc' => 'WC', 'cuisine' => 'Cuisine'); function chambre($additionnalfavorites = array()) { @@ -110,8 +110,9 @@ function bureau() function cuisine() { $favorites = [ - //['type' => 'light', 'scene' => 'cuisine/on', 'label' => 'Allumer'], - //['type' => 'light', 'scene' => 'cuisine/off', 'label' => 'éteindre'], + ['type' => 'light', 'scene' => 'cuisine/on', 'label' => 'Allumer'], + ['type' => 'light', 'scene' => 'cuisine/off', 'label' => 'éteindre'], + ['type' => 'light', 'scene' => 'cuisine/tamise', 'label' => 'Tamisé'], ]; $all = array_merge($favorites, [ diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 804bde2..c9b9e70 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -302,6 +302,7 @@ $scenes = [ ['type' => 'scene', 'scene' => 'chambre/bed'], ['type' => 'scene', 'scene' => 'bureau/off'], ['type' => 'scene', 'scene' => 'salon/off'], + ['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'cour/off'], ['type' => 'function', 'function' => 'stopHarmony'], ['type' => 'function', 'function' => 'stopAllSqueezebox'], @@ -324,6 +325,7 @@ $scenes = [ ], 'salon/cinema' => [ ['type' => 'hue', 'group' => $salon, 'scene' => 'AsU9eOyGsjEyz35'], + ['type' => 'scene', 'scene' => 'cuisine/tamise'], ['type' => 'ecomode', 'mode' => '0'], ['type' => 'insteon', 'command' => '0?1111=I=0=0'], ['type' => 'hue', 'group' => $salon, 'scene' => 'AsU9eOyGsjEyz35'], @@ -485,6 +487,7 @@ $scenes = [ 'home/off' => [ ['type' => 'scene', 'scene' => 'home/hueoff'], ['type' => 'ecomode', 'mode' => '2'], + ['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'salon/off'], ['type' => 'scene', 'scene' => 'cour/off'], ['type' => 'scene', 'scene' => 'bureau/off'], @@ -504,6 +507,7 @@ $scenes = [ ], 'home/welcome' => [ ['type' => 'ecomode', 'mode' => '0'], + ['type' => 'scene', 'scene' => 'cuisine/on'], ['type' => 'scene', 'scene' => 'salon/on'], ['type' => 'scene', 'scene' => 'bureau/auto'], ['type' => 'scene', 'scene' => 'chambre/auto'], @@ -599,6 +603,15 @@ $scenes = [ 'salon/freebox/off' => [ ['type' => 'domoticz', 'device' => '1439', 'command' => false], ], + 'cuisine/on' => [ + ['type' => 'hue', 'group' => $cuisine, 'scene' => 'UDlNCnVQjTHZJFF'] + ], + 'cuisine/tamise' => [ + ['type' => 'hue', 'group' => $cuisine, 'scene' => '44yXoQdJErFPksE'] + ], + 'cuisine/off' => [ + ['type' => 'hue', 'group' => $cuisine, 'scene' => array('on' => false, 'brightness' => 0)] + ], 'cour/auto' => [ ['type' => 'domoticz', 'device' => '678', 'command' => true], ['type' => 'function', 'function' => 'courAuto', 'args' => [true]],