From: vincent Date: Sat, 22 Jan 2022 15:19:32 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=54b3a2634ade690d09a3eef8b85112d04ae11c03;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dff337d..c9df4bb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,8 @@ - - - + diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 20211fa..a22f788 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -646,7 +646,6 @@ $scenes = [ 'home/off' => [ ['type' => 'scene', 'scene' => 'home/hueoff'], ['type' => 'ecomode', 'mode' => '2'], - ['type' => 'function', 'key' => 'hotwaterAutoMode', 'args' => ['1']], //['type' => 'scene', 'scene' => 'cuisine/off'], ['type' => 'scene', 'scene' => 'salon/off'], ['type' => 'scene', 'scene' => 'cour/off'], @@ -665,6 +664,7 @@ $scenes = [ ['type' => 'scene', 'scene' => 'home/hueoff'], ['type' => 'scene', 'scene' => 'salon/media/off'], ['type' => 'scene', 'scene' => 'salon/off', 'delay' => 2], + ['type' => 'function', 'key' => 'hotwaterAutoMode', 'args' => ['1']], ], 'home/welcome' => [ ['type' => 'scene', 'scene' => 'cuisine/on'], @@ -744,9 +744,9 @@ $scenes = [ ], 'sdb/off' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 0], - ['type' => 'function', 'key' => 'hotwaterAutoMode', 'args' => ['1']], ['type' => 'domoticz', 'scene' => 20, 'command' => false, 'priority' => true], ['type' => 'function', 'function' => 'stopSqueezeboxPlayer', 'args' => [$squeezeboxPlayers['Salle de bains'], false]], + ['type' => 'function', 'key' => 'hotwaterAutoMode', 'args' => ['1']], ], 'sdb/on' => [ ['type' => 'state', 'key' => 'sdb', 'value' => 1], diff --git a/scripts/lib/squeezebox.php b/scripts/lib/squeezebox.php index 5dec618..252cbaf 100644 --- a/scripts/lib/squeezebox.php +++ b/scripts/lib/squeezebox.php @@ -157,6 +157,7 @@ function squeezePlayerOn($player) // } } else if ($player == $squeezeboxPlayers['Salle de bains']) { execScene('sdb/ampli/on'); + if (getSqueezePlayerStatus($player) < 0) { phoneTask('Tortuga', 'sdb'); }