diff --git a/server/ControlScripts/Common.php b/server/ControlScripts/Common.php index 4d405fe..8903bf3 100644 --- a/server/ControlScripts/Common.php +++ b/server/ControlScripts/Common.php @@ -8,21 +8,21 @@ public function register_global_device_sync_map() { $this -> add_sync_connection([ ["type" => "relay", "alias" => "spotlight_main_back_1", "channel" => 0], - ["type" => "button", "alias" => "buttons_backdoor", "channel" => 0], - ["type" => "button", "alias" => "master_door_btns", "channel" => 0], - ["type" => "button", "alias" => "bed_btns_left", "channel" => 0], + ["type" => "button", "alias" => "buttons_backdoor", "channel" => 2], + ["type" => "button", "alias" => "master_door_btns", "channel" => 1], + ["type" => "button", "alias" => "bed_btns_left", "channel" => 1], ]); $this -> add_sync_connection([ ["type" => "relay", "alias" => "spotlight_main_back_2", "channel" => 0], ["type" => "button", "alias" => "buttons_backdoor", "channel" => 1], - ["type" => "button", "alias" => "master_door_btns", "channel" => 1], + ["type" => "button", "alias" => "master_door_btns", "channel" => 0], ]); $this -> add_sync_connection([ ["type" => "relay", "alias" => "spotlight_main_front_1", "channel" => 0], - ["type" => "button", "alias" => "buttons_backdoor", "channel" => 2], - ["type" => "button", "alias" => "master_door_btns", "channel" => 2], + ["type" => "button", "alias" => "buttons_backdoor", "channel" => 0], + ["type" => "button", "alias" => "master_door_btns", "channel" => 3], ]); $this -> add_sync_connection([ diff --git a/server/SHServ/Controllers/AreasRESTAPIController.php b/server/SHServ/Controllers/AreasRESTAPIController.php index 779feaf..99fb42a 100644 --- a/server/SHServ/Controllers/AreasRESTAPIController.php +++ b/server/SHServ/Controllers/AreasRESTAPIController.php @@ -313,4 +313,4 @@ "types" => (new Areas()) -> get_exists_types() ]); } -} \ No newline at end of file +}