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

index ed28593b7365862054a8f3fca94e4437bde68d59..b645bf31d07a45d6ac8943a33f4fcafebb8ad02c 100644 (file)
       <workItem from="1642848701157" duration="3435000" />
       <workItem from="1642856038290" duration="9359000" />
       <workItem from="1642939498777" duration="2862000" />
-      <workItem from="1642946319444" duration="2162000" />
-    </task>
-    <task id="LOCAL-00465" summary=".">
-      <created>1618341048382</created>
-      <option name="number" value="00465" />
-      <option name="presentableId" value="LOCAL-00465" />
-      <option name="project" value="LOCAL" />
-      <updated>1618341048382</updated>
+      <workItem from="1642946319444" duration="2408000" />
     </task>
     <task id="LOCAL-00466" summary=".">
       <created>1618341457184</created>
       <option name="project" value="LOCAL" />
       <updated>1642945290135</updated>
     </task>
-    <option name="localTasksCounter" value="514" />
+    <task id="LOCAL-00514" summary=".">
+      <created>1642950374766</created>
+      <option name="number" value="00514" />
+      <option name="presentableId" value="LOCAL-00514" />
+      <option name="project" value="LOCAL" />
+      <updated>1642950374766</updated>
+    </task>
+    <option name="localTasksCounter" value="515" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index 662033f9ecb8e97afe7b5504cc7d6cf8a248b5d2..d2577aad70a42fd009eb7cc1b72b994fc0dc6b96 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 function switchbot($device, $command = 'press', $rpi = 'bureausun')
 {
-   return;
+    return;
     for ($i = 0; $i <= 2; $i++) {
         $res = sshCommand('/usr/bin/python3 /usr/local/python-host/switchbot_py3.py -d ' . $device . ' -c ' . $command, $rpi, true, true);
         if (stristr($res['output'], 'Command execution successful')) {
@@ -15,6 +15,7 @@ function switchbot($device, $command = 'press', $rpi = 'bureausun')
 
 function hotwaterAutoMode($mode)
 {
+    return;
     $mode = $mode ? '1' : '0';
     setState('hotwater_auto_mode', $mode);
     if ($mode) {
@@ -24,7 +25,7 @@ function hotwaterAutoMode($mode)
 
 function hotwaterCheckMode()
 {
-
+    return;
     if (getState('hotwater_auto_mode', '1') == '0') {
         return;
     }
@@ -47,6 +48,7 @@ function hotwaterCheckMode()
 
 function hotwater($newState)
 {
+    return;
     // 0 : OFF
     // 1 : ECO
     // 2 : MAX