Refactor: room-based Control Scripts scopes + helper relocation
- Split 3 old scopes into 8 room/zone scopes:
  OfficeScope, PlantsRoomScope, ServerRoomScope, HallScope,
  KitchenScope, MasterBedroomScope, BathroomScope, OutdoorScope
- Deleted: LightHubScope, OfficeRoomScope, SpotlightsScope, TestScriptsScope
- Moved helpers from Common trait to ControlScripts / DeviceScriptsHelper
- Common trait now holds ONLY register_global_device_sync_map (centralized)
- Added dedup in add_sync_connection to prevent sync map duplication
- Removed dead Button entries from group_toggle targets
- Updated docs/control-scripts-guide.md with scope concept
- Adapted ScriptHelpersTest for protected helper methods
1 parent 971cb1b commit 275a370aea5b6b8e5e7c1283dc55cda1e23b7c86
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 1 day ago
Showing 17 changed files
View
automation/Common.php
View
automation/Scopes/BathroomScope.php 0 → 100644
View
automation/Scopes/HallScope.php 0 → 100644
View
automation/Scopes/KitchenScope.php 0 → 100644
View
automation/Scopes/LightHubScope.php 100644 → 0
View
automation/Scopes/MasterBedroomScope.php 0 → 100644
View
automation/Scopes/OfficeRoomScope.php 100644 → 0
View
automation/Scopes/OfficeScope.php 0 → 100644
View
automation/Scopes/OutdoorScope.php 0 → 100644
View
automation/Scopes/PlantsRoomScope.php 0 → 100644
View
automation/Scopes/ServerRoomScope.php 0 → 100644
View
automation/Scopes/SpotlightsScope.php 100644 → 0
View
automation/Scopes/TestScriptsScope.php 100644 → 0
View
docs/control-scripts-guide.md
View
server/SHServ/Helpers/DeviceScriptsHelper.php
View
server/SHServ/Middleware/ControlScripts.php
View
server/tests/ScriptHelpersTest.php 0 → 100644