diff --git a/server/ControlScripts/Common.php b/server/ControlScripts/Common.php index f3a9de8..35bcba7 100644 --- a/server/ControlScripts/Common.php +++ b/server/ControlScripts/Common.php @@ -44,11 +44,14 @@ ["type" => "button", "alias" => "buttons_office_room", "channel" => 0], ["type" => "button", "alias" => "master_room_btns", "channel" => 1], ["type" => "button", "alias" => "btns_hall2_1", "channel" => 0], + ["type" => "button", "alias" => "hall_secondary", "channel" => 0], + ["type" => "button", "alias" => "bed_btns_right_1", "channel" => 0], ]); $this -> add_sync_connection([ ["type" => "relay", "alias" => "light_hub_1", "channel" => 1], ["type" => "button", "alias" => "master_room_btns", "channel" => 0], + ["type" => "button", "alias" => "bed_btns_right_1", "channel" => 1], ]); } diff --git a/server/ControlScripts/Scopes/LightHubScope.php b/server/ControlScripts/Scopes/LightHubScope.php index 6d04b9c..245289a 100644 --- a/server/ControlScripts/Scopes/LightHubScope.php +++ b/server/ControlScripts/Scopes/LightHubScope.php @@ -15,8 +15,12 @@ public function register_events_handlers(): void { $this -> btn_on_online("master_room_btns", [2, 3]); $this -> btn_on_online("btns_hall2_1", [1]); + $this -> btn_on_online("hall_secondary", [1]); + $this -> btn_on_online("bed_btns_right_1", []); $this -> set_btns_click_handlers("master_room_btns"); $this -> set_btns_click_handlers("btns_hall2_1"); + $this -> set_btns_click_handlers("hall_secondary"); + $this -> set_btns_click_handlers("bed_btns_right_1"); } public function register_actions_scripts(): void { diff --git a/server/ControlScripts/Scopes/SpotlightsScope.php b/server/ControlScripts/Scopes/SpotlightsScope.php index bc9e8e6..dd8c057 100644 --- a/server/ControlScripts/Scopes/SpotlightsScope.php +++ b/server/ControlScripts/Scopes/SpotlightsScope.php @@ -14,8 +14,8 @@ public function register_events_handlers(): void { $this -> set_btns_click_handlers("buttons_backdoor"); $this -> set_btns_click_handlers("master_door_btns"); - $this -> btn_on_online("buttons_backdoor"); - $this -> btn_on_online("master_door_btns"); + $this -> btn_on_online("buttons_backdoor", [3]); + $this -> btn_on_online("master_door_btns", [3]); } public function register_actions_scripts(): void {