]> _ Git - tortuga-home.git/commitdiff
.
authorvincent <vincent@enhydra.fr>
Sat, 22 Jan 2022 15:19:32 +0000 (16:19 +0100)
committervincent <vincent@enhydra.fr>
Sat, 22 Jan 2022 15:19:32 +0000 (16:19 +0100)
.idea/workspace.xml
scripts/lib/scenes.php
scripts/lib/squeezebox.php

index dff337d5a1e4ed0e5ce593878f039c39dfb37bde..c9df4bb9e1ee848627e3068dc18b9ad9dd1acb67 100644 (file)
@@ -2,10 +2,8 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/scripts/lib/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/scripts/lib/switchbot.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/switchbot.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/scripts/lib/squeezebox.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/squeezebox.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
       <workItem from="1642240002240" duration="1108000" />
       <workItem from="1642761590471" duration="1992000" />
       <workItem from="1642848701157" duration="3435000" />
-      <workItem from="1642856038290" duration="5632000" />
-    </task>
-    <task id="LOCAL-00460" summary=".">
-      <created>1616837886170</created>
-      <option name="number" value="00460" />
-      <option name="presentableId" value="LOCAL-00460" />
-      <option name="project" value="LOCAL" />
-      <updated>1616837886170</updated>
+      <workItem from="1642856038290" duration="5973000" />
     </task>
     <task id="LOCAL-00461" summary=".">
       <created>1617266964333</created>
       <option name="project" value="LOCAL" />
       <updated>1642863251325</updated>
     </task>
-    <option name="localTasksCounter" value="509" />
+    <task id="LOCAL-00509" summary=".">
+      <created>1642864397546</created>
+      <option name="number" value="00509" />
+      <option name="presentableId" value="LOCAL-00509" />
+      <option name="project" value="LOCAL" />
+      <updated>1642864397546</updated>
+    </task>
+    <option name="localTasksCounter" value="510" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index 20211fa7f59e3a9c075777d13c4d21ab7a61eb3c..a22f7881b08ddb48554aced4fc27b70ea991bdd6 100644 (file)
@@ -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],
index 5dec618c419837d2d0d935c159e83256961a0369..252cbaf4bcf7af5be711a90adccf8593c2880ba3 100644 (file)
@@ -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');
         }