]> _ Git - tortuga-home.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 9 Jul 2023 17:01:03 +0000 (19:01 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 9 Jul 2023 17:01:03 +0000 (19:01 +0200)
.idea/workspace.xml
scripts/homeassistant_device_event.php

index 387394e0643d84c0c2ce9c2ea070eb0e8502e1bb..70a3fd9089baa74892cfc5edf659737b706eefce 100644 (file)
@@ -5,7 +5,6 @@
   </component>
   <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/homeassistant_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/homeassistant_device_event.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
       <workItem from="1688750143650" duration="1624000" />
       <workItem from="1688808953960" duration="594000" />
       <workItem from="1688849303515" duration="1558000" />
-      <workItem from="1688897001591" duration="13379000" />
+      <workItem from="1688897001591" duration="14386000" />
     </task>
     <task id="LOCAL-00502" summary=".">
       <created>1641726946298</created>
       <option name="project" value="LOCAL" />
       <updated>1687259667913</updated>
     </task>
-    <option name="localTasksCounter" value="565" />
+    <option name="localTasksCounter" value="566" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
index b026bf02413ada90af58bb8faa9056c01ecbd3ea..4b5ba5f6eb595ba220e454c2d5b074929d20a09f 100644 (file)
@@ -7,7 +7,6 @@ if ($_GET['state'] === 'None') {
 }
 const HA_WC_SWITCH = 'sensor.0x0c4314fffe7ce957_action';
 const HA_CUBE_BUREAU = 'sensor.0x00158d00042d7082_action';
-const HA_CUBE_BUREAU_SIDE = 'sensor.0x00158d00042d7082_side';
 const HA_SWITCH_BEDROOM = 'binary_sensor.switch_bedroom';
 const HA_CUBE_BATHROOM = 'sensor.0x00158d0005c19a86_action';
 const HA_CUBE_SALON_1 = 'sensor.0x00158d00029ba2b6_action';
@@ -24,10 +23,7 @@ switch ($_GET['id']) {
                $forceConfig = 'bureau';
                $action = 'cubeBureau';
                break;
-       case HA_CUBE_BUREAU_SIDE:
-               $forceConfig = 'bureau';
-               $action = 'setCubeFace';
-               break;
+
        case HA_SWITCH_BEDROOM:
                $forceConfig = 'chambre';
                $action = 'chambreToggle';
@@ -52,10 +48,6 @@ require_once "import.php";
 $action();
 
 
-function setCubeFace() {
-       setState('cube_face_' . $_GET['id'], $_GET['state']);
-}
-
 function getCubeFace($id = null) {
        if (null === $id) {
                $id = $_GET['id'];