From: Vincent Date: Mon, 25 Jan 2021 15:01:49 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=db97764fbaa3b7e992640679c30de97e92ab8712;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2ffe36d..f735ede 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,21 +3,8 @@ - - - - - - - - - - - - - diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index b4f8ee1..d32d58e 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -384,14 +384,13 @@ function cronHarmony($cronmin) setPlaying('squeezebox', 'bureau'); } else if ($currentActivity == 'poweroff' || $currentActivity == 'off') { setPlaying('mycanal', 'bureau'); - harmonyDeviceCommand('sony-projecteur', 'power-off'); } - if ($currentActivity === 'poweroff' || $currentActivity === 'off' || $currentActivity === 'musique') { - harmonyDeviceCommand('sony-projecteur', 'power-off'); - } else { - harmonyDeviceCommand('sony-projecteur', 'power-on'); - } +// if ($currentActivity === 'poweroff' || $currentActivity === 'off' || $currentActivity === 'musique') { +// harmonyDeviceCommand('sony-projecteur', 'power-off'); +// } else { +// harmonyDeviceCommand('sony-projecteur', 'power-on'); +// } } function cronHeartbeat($cronmin) diff --git a/scripts/lib/squeezebox.php b/scripts/lib/squeezebox.php index 84aa867..c7c25fb 100644 --- a/scripts/lib/squeezebox.php +++ b/scripts/lib/squeezebox.php @@ -132,12 +132,13 @@ function squeezePlayByName($musicName, $player, $volume = null, $playIfSync = tr if ($player == $squeezeboxPlayers['Salon']) { setState('maskShieldSalonWakeup', '1'); - + shieldRunAppAndBackHome('sbplayer', 'salon', 1, false); } else if ($player == $squeezeboxPlayers['Salle de bains']) { execScene('sdb/ampli/on'); } else if ($player == $squeezeboxPlayers['Bureau']) { harmonyActivity('musique'); setState('maskShieldBureauWakeup', '1'); + shieldRunAppAndBackHome('sbplayer', 'bureau', 1, false); } else if ($player == $squeezeboxPlayers['Chambre']) { denon(true); }