From: vincent Date: Sat, 22 Jan 2022 18:44:01 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8b2df5f445ca667317e99c90a39f8a65a308d677;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c9df4bb..2920586 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,12 @@ + + + + diff --git a/config/global.php b/config/global.php index fa7de0d..0d52246 100644 --- a/config/global.php +++ b/config/global.php @@ -92,7 +92,7 @@ $devices = [ 'cuisine' => ['id' => 'cuisine', 'host' => '192.168.13.68', 'shield' => '192.168.13.31', 'user' => 'pi', 'password' => 'atacama'], 'bureausun' => ['id' => 'bureausun', 'host' => '192.168.13.70', 'shield' => '192.168.13.41', 'user' => 'pi', 'password' => 'atacama'], 'lit' => ['id' => 'lit', 'host' => '192.168.13.69', 'user' => 'pi', 'password' => 'atacama'], - 'sdb' => ['id' => 'sdb', 'shield' => '192.168.13.32'], + 'sdb' => ['id' => 'sdb', 'shield' => '192.168.13.32', 'host' => '192.168.13.63', 'user' => 'pi', 'password' => 'atacama'], 'avion' => ['id' => 'avion', 'host' => '192.168.13.5', 'user' => 'Tortuga', 'password' => '8nc4PuwzCScw&^Vi$Fh#&n', 'mac' => 'E0:D5:5E:68:67:B9'], ]; diff --git a/scripts/lib/off.php b/scripts/lib/off.php index 6a44615..4d0bd26 100644 --- a/scripts/lib/off.php +++ b/scripts/lib/off.php @@ -49,6 +49,7 @@ function offSdb() { execScene('sdb/ampli/off'); offOMX('sdb'); + hotwaterAutoMode('1'); } function offChambre() diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index a22f788..ad8439c 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -746,7 +746,6 @@ $scenes = [ ['type' => 'state', 'key' => 'sdb', 'value' => 0], ['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 252cbaf..39ac73d 100644 --- a/scripts/lib/squeezebox.php +++ b/scripts/lib/squeezebox.php @@ -141,6 +141,10 @@ function squeezePlayByName($musicName, $player, $volume = null, $playIfSync = tr echo $player . ':' . $command . '
'; squeezeRequest($command, $player); } + + if ($player === 'Salle de bains') { + hotwaterCheckMode(); + } } function squeezePlayerOn($player) diff --git a/scripts/lib/switchbot.php b/scripts/lib/switchbot.php index 61ee59b..dfe0001 100644 --- a/scripts/lib/switchbot.php +++ b/scripts/lib/switchbot.php @@ -1,8 +1,8 @@