From: Vincent Date: Mon, 2 Nov 2020 09:00:41 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3cb1787bf103707a1ee5c4e1d4fb32d8269377c4;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f5d705b..a07ea15 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,10 +3,7 @@ - - - - + @@ -1282,10 +1279,10 @@ - + - + diff --git a/scripts/domoticz_device_event.php b/scripts/domoticz_device_event.php index 8e9c083..025e5bb 100644 --- a/scripts/domoticz_device_event.php +++ b/scripts/domoticz_device_event.php @@ -30,7 +30,6 @@ if ($_GET['device'] == 480) { execScene('salon/on'); break; case 'Free_Fall': - execScene('salon/off'); off('salon'); break; case 'Move': @@ -39,14 +38,10 @@ if ($_GET['device'] == 480) { } break; case 'Clock_Wise': - if (getCurrentHarmonyActivity() !== 'poweroff') { - harmonyRequest('commands/volume-up?repeat=3', 'POST'); - } + volume(1,'+'); break; case 'Anti_Clock_Wise': - if (getCurrentHarmonyActivity() !== 'poweroff') { - harmonyRequest('commands/volume-down?repeat=5', 'POST'); - } + volume(1,'-'); break; case 'Tap': if (getCurrentHarmonyActivity() == 'poweroff') { diff --git a/scripts/lib/harmony.php b/scripts/lib/harmony.php index def3f3b..b2d8f00 100644 --- a/scripts/lib/harmony.php +++ b/scripts/lib/harmony.php @@ -31,7 +31,7 @@ function harmonyRequest($uri, $method = 'GET', $hub = 'salon') function harmonyActivity($activity) { if ($activity == 'tv' || $activity == 'poweroff' || $activity == 'off') { - setPlaying('freebox', 'salon'); + setPlaying('mycanal', 'salon'); } $wait = 0; $current = getCurrentHarmonyActivity();