From 141ebbeedbb34f53d267b0cb3320dda628ce5b5a Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 19 Feb 2021 13:39:00 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 23 +++++++++++++---------- scripts/lib/denon.php | 2 +- scripts/lib/scenes.php | 5 +++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 543f5b6..e9ab19b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,8 @@ - + + diff --git a/scripts/lib/denon.php b/scripts/lib/denon.php index b1fd2eb..0df0cb2 100644 --- a/scripts/lib/denon.php +++ b/scripts/lib/denon.php @@ -50,7 +50,7 @@ function denonAVRInput($input) sleep(1); } - $audioMode = ['Media Player' => 'MOVIE', 'AUX' => 'MUSIC', 'CD' => 'MUSIC']; + $audioMode = ['Media Player' => 'DOLBY DIGITAL', 'AUX' => 'DOLBY DIGITAL', 'CD' => 'DOLBY DIGITAL']; if (isset($audioMode[$input])) { denonAVRSetAudioMode($audioMode[$input]); usleep(1000000 * 0.5); diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index e6eb859..a7965de 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -326,6 +326,7 @@ $scenes = [ ['type' => 'scene', 'scene' => 'salon/off'], ['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'cour/off'], + ['type' => 'scene', 'scene' => 'salon/media/off'], ['type' => 'function', 'function' => 'stopHarmony'], ['type' => 'function', 'function' => 'stopAllSqueezebox'], ['type' => 'nightmode', 'mode' => '1'], @@ -382,6 +383,9 @@ $scenes = [ 'salon/cheminee/off' => [ ['type' => 'function', 'function' => 'chemineeOff', 'args' => ['salon']], ], + 'salon/media/off' => [ + ['type' => 'function', 'function' => 'off','args'=>['salon']], + ], 'salon/media/play' => [ ], @@ -577,6 +581,7 @@ $scenes = [ ['type' => 'ecomode', 'mode' => '2'], ['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'salon/off'], + ['type' => 'scene', 'scene' => 'salon/media/off'], ['type' => 'scene', 'scene' => 'cour/off'], ['type' => 'scene', 'scene' => 'bureau/off'], ['type' => 'scene', 'scene' => 'chambre/off'], -- 2.39.5