From 8e123201281d0c35cd8e1fa0edc13a3c2efed0e7 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 28 Sep 2019 11:37:39 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 22 +++++++++++----------- scripts/lib/scenes.php | 14 ++++++-------- tools/pop/pop.py | 2 +- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 75bfb3f..c99dd6f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,8 @@ - - + diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index c1f2402..1c2d1eb 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -66,6 +66,7 @@ $scenes = [ ['type' => 'scene', 'scene' => 'chambre/cheminee'], ['type' => 'scene', 'scene' => 'chambre/planetarium/on'], // Planétarium on ['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'], + ['type' => 'scene', 'scene' => 'chambre/raspberry/off'], ['type' => 'phonetask', 'phone' => 'vincent', 'task' => 'Va Au Lit'], ], 'chambre/boreal' => [ @@ -124,6 +125,7 @@ $scenes = [ ['type' => 'scene', 'scene' => 'chambre/cheminee/smallfire'], ['type' => 'scene', 'scene' => 'chambre/planetarium/on'], // Planétarium on ['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'], + ['type' => 'scene', 'scene' => 'chambre/raspberry/off'], ['type' => 'delay', 'scene' => 'chambre/bedoff', 'delay' => 300], // Tout off dans 5 min ['type' => 'delay', 'scene' => 'chambre/planetarium/off', 'delay' => 3600], // Planétarium off dans une heure ['type' => 'scene', 'scene' => 'salon/freebox/off'], @@ -234,14 +236,14 @@ $scenes = [ ['type' => 'function', 'function' => 'planetarium', 'args' => [true]], ], 'chambre/vincent/lecture' => [ - ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 60, 'colorTemp' => 346, 'transitionTime' => 10)], + ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 35, 'colorTemp' => 346, 'transitionTime' => 10)], ], 'chambre/vincent/litdiscret' => [ - ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 60, 'hue' => 0, 'saturation' => 255, 'transitionTime' => 1)], + ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 20, 'hue' => 0, 'saturation' => 255, 'transitionTime' => 1)], ], 'chambre/vincent/crepuscule' => [ ['type' => 'insteon', 'command' => '3?0262261ED00F1300=I=3'], - ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 60, 'hue' => '0', 'saturation' => 255, 'transitionTime' => 0)], + ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => true, 'brightness' => 60, 'hue' => '0', 'saturation' => 255, 'transitionTime' => 10)], ['type' => 'hue', 'light' => $litvincent, 'scene' => array('on' => false, 'brightness' => 0, 'transitionTime' => 10 * 60)], ['type' => 'insteon', 'command' => '3?0262261ED00F11FF=I=3'], ], @@ -678,16 +680,12 @@ function sdbToggle() { if (getState('sdb') == 1) { execScene('sdb/off'); + stopSqueezebox('Salle de bains'); } else { execScene('sdb/on'); } } -function sdbMorning() -{ - execScene('sdb/on'); -} - function wcOn($vmc = true) { $hour = getHour(); diff --git a/tools/pop/pop.py b/tools/pop/pop.py index 314f31e..c91ebcf 100644 --- a/tools/pop/pop.py +++ b/tools/pop/pop.py @@ -7,7 +7,7 @@ import sys device = sys.argv[1] map = ['', '', 'tap', 'long', 'double'] -rooms = {'wc': 'wc','sdb':'sdb'} +rooms = {'wc': 'wc', 'sdb':'sdb'} macs = {'wc': 'a0:e6:f8:db:ff:2f','sdb':'a0:e6:f8:dc:01:d7'} mac = macs[device] -- 2.39.5