From: Vincent Vanwaelscappel Date: Sun, 9 Jul 2023 17:01:03 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=938f7c745a0dbc89443b5615f5e6e10e09ce0ba9;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 387394e..70a3fd9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,6 @@ - diff --git a/scripts/homeassistant_device_event.php b/scripts/homeassistant_device_event.php index b026bf0..4b5ba5f 100644 --- a/scripts/homeassistant_device_event.php +++ b/scripts/homeassistant_device_event.php @@ -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'];