From 135c242b1f480a71d91ea060ee195a735196dc71 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 6 Sep 2020 20:42:48 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 21 +++++++++++---------- scripts/freeboxchannel.php | 2 +- scripts/lib/scenes.php | 7 ++----- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3d8f510..4c3f3ed 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,6 @@ - @@ -866,14 +865,9 @@ - - - - 1581412676917 - 1581414712831 @@ -1211,7 +1205,14 @@ - diff --git a/scripts/freeboxchannel.php b/scripts/freeboxchannel.php index 1242c09..9c7d40d 100644 --- a/scripts/freeboxchannel.php +++ b/scripts/freeboxchannel.php @@ -7,7 +7,7 @@ if (isset($_GET['channel'])) { } else if (isset($_GET['menu']) && $_GET['menu'] == 'replay') { $commands = ['right', 'ok', 'pause=5', 'down', 'down', 'down', 'down', 'down']; } else if (isset($_GET['menu']) && $_GET['menu'] == 'netflix') { - $commands = ['right', 'down', 'down', 'down', 'ok', 'pause=25', 'ok']; + $commands = ['right', 'down', 'down', 'down', 'ok', 'pause=25', 'ok', 'pause=5', 'down']; } $keys = array_merge(array('home', 'pause=2', 'home', 'pause=1', 'home', 'left', 'right', 'home'), $commands); diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 998cb4e..01701ce 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -185,7 +185,7 @@ $scenes = [ ['type' => 'function', 'function' => 'bedbrightness', 'args' => [255]], ['type' => 'scene', 'scene' => 'chambre/cheminee'], ], - 'chambre/nightlights'=>[ + 'chambre/nightlights' => [ ['type' => 'hue', 'group' => $chambre, 'scene' => 'JNieZpDHu5fbMyf'], ['type' => 'domoticz', 'scene' => 16, 'command' => true, 'priority' => true], ], @@ -229,10 +229,7 @@ $scenes = [ 'chambre/bedoff' => [ ['type' => 'nightmode', 'mode' => '1'], ['type' => 'ecomode', 'mode' => '1'], - ['type' => 'function', 'function' => 'chambreAuto', 'args' => [false]], - ['type' => 'state', 'key' => 'chambre', 'value' => 0], - ['type' => 'hue', 'group' => $chambre, 'scene' => array('on' => false, 'brightness' => 0)], - ['type' => 'insteon', 'command' => '0?1332=I=0=0'], + ['type' => 'scene', 'scene' => 'chambre/off/exceptcheminee'], ['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'], ['type' => 'function', 'function' => 'bedbrightness', 'args' => [$bedlowscreenbrightness]], ['type' => 'scene', 'scene' => 'chambre/cheminee/off'], -- 2.39.5