From d96a2efca42268585a2334b4529c23c98b720c34 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 5 Mar 2020 14:05:56 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 28 ++++++++++++++++------------ config/bureau.php | 2 +- config/bureausun.php | 5 +++-- scripts/lib/lib.php | 24 +++++------------------- scripts/lib/scenes.php | 15 ++++++++++----- 5 files changed, 35 insertions(+), 39 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 199a502..6055e7e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,10 @@ - + + + + @@ -1233,12 +1237,12 @@ - + - + diff --git a/config/bureau.php b/config/bureau.php index 027ec82..601e5d0 100644 --- a/config/bureau.php +++ b/config/bureau.php @@ -4,7 +4,7 @@ config('ROOM', 'bureau'); config('SQUEEZEBOX_PLAYER', 'Bureau'); config('VIDEOPLAYER', 'mediarasp'); config('VOLUME', 0); -config('VOLUME_DEVICE', 'auto'); +config('VOLUME_DEVICE', 'RaspberryPi'); config('SLEEPTYPE', 'screensaver'); config('SCREENSAVER', 'suncurve'); config('SLEEPSCREEN', 15); diff --git a/config/bureausun.php b/config/bureausun.php index 75e2210..35e677b 100644 --- a/config/bureausun.php +++ b/config/bureausun.php @@ -1,4 +1,5 @@ 'hue', 'group' => $salon, 'scene' => 'Gte8sl76rzAD1wO'], ['type' => 'insteon', 'command' => '0?113=I=0=0'], ['type' => 'scene', 'scene' => 'salon/cheminee', 'delay' => 1], + ['type' => 'hue', 'group' => $salon, 'scene' => 'Gte8sl76rzAD1wO'], ], 'salon/off' => [ ['type' => 'hue', 'group' => $salon, 'scene' => array('on' => false, 'brightness' => 0)], ['type' => 'insteon', 'command' => '0?133=I=0=0'], ['type' => 'function', 'function' => 'chemineeOff', 'args' => ['salon']], + ['type' => 'hue', 'group' => $salon, 'scene' => array('on' => false, 'brightness' => 0)], ], 'salon/cinema' => [ + ['type' => 'hue', 'group' => $salon, 'scene' => 'AsU9eOyGsjEyz35'], ['type' => 'ecomode', 'mode' => '0'], ['type' => 'insteon', 'command' => '0?1111=I=0=0'], ['type' => 'hue', 'group' => $salon, 'scene' => 'AsU9eOyGsjEyz35'], @@ -307,11 +310,13 @@ $scenes = [ ['type' => 'hue', 'group' => $salon, 'scene' => 'RbjnIcLtcDuHbfU'], ['type' => 'insteon', 'command' => '0?1130=I=0=0'], ['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 0.8]], + ['type' => 'hue', 'group' => $salon, 'scene' => 'RbjnIcLtcDuHbfU'], ], 'salon/lecturenocture' => [ ['type' => 'hue', 'group' => $salon, 'scene' => 'HZiYyM6hMUMkmiY'], ['type' => 'insteon', 'command' => '0?1113=I=0=0'], ['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 0.25]], + ['type' => 'hue', 'group' => $salon, 'scene' => 'HZiYyM6hMUMkmiY'], ], 'salon/cheminee' => [ ['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 1]], @@ -511,10 +516,10 @@ $scenes = [ ['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Rivière', $squeezeboxPlayers['WC'], 65]], ], 'sdb/ampli/on' => [ - ['type' => 'domoticz', 'device' => '477', 'command' => true, 'priority' => true], + ['type' => 'domoticz', 'device' => '1438', 'command' => true, 'priority' => true], ], 'sdb/ampli/off' => [ - ['type' => 'domoticz', 'device' => '477', 'command' => false, 'priority' => true], + ['type' => 'domoticz', 'device' => '1438', 'command' => false, 'priority' => true], ], 'sdb/off' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 0], @@ -542,10 +547,10 @@ $scenes = [ ['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Rivière', $squeezeboxPlayers['Salle de bains'], 65]], ], 'salon/freebox/on' => [ - ['type' => 'domoticz', 'device' => '478', 'command' => true, 'priority' => true], + ['type' => 'domoticz', 'device' => '1439', 'command' => true, 'priority' => true], ], 'salon/freebox/off' => [ - ['type' => 'domoticz', 'device' => '478', 'command' => false, 'priority' => true], + ['type' => 'domoticz', 'device' => '1439', 'command' => false, 'priority' => true], ], 'ecomode/basic' => [ ['type' => 'scene', 'scene' => 'salon/freebox/off'], @@ -713,7 +718,7 @@ function wcOn($vmc = true) } } -function planetarium($on)0 +function planetarium($on) { setState('planetarium', $on ? '1' : '0'); checkPlanetarium(false); -- 2.39.5