From 938f7c745a0dbc89443b5615f5e6e10e09ce0ba9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Sun, 9 Jul 2023 19:01:03 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 5 ++--- scripts/homeassistant_device_event.php | 10 +--------- 2 files changed, 3 insertions(+), 12 deletions(-) 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']; -- 2.39.5