Replace profile targets with scene activation and searchable scene selector

Profiles now activate scene presets instead of individual targets, with
configurable deactivation behavior (none/revert/fallback scene). The
target checklist UI is replaced by a searchable combobox for scene
selection that scales well with many scenes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 17:29:02 +03:00
parent 2e747b5ece
commit da3e53e1f1
17 changed files with 739 additions and 353 deletions

View File

@@ -108,8 +108,14 @@ async def lifespan(app: FastAPI):
mqtt_service = MQTTService(config.mqtt)
set_mqtt_service(mqtt_service)
# Create profile engine (needs processor_manager + mqtt_service)
profile_engine = ProfileEngine(profile_store, processor_manager, mqtt_service=mqtt_service)
# Create profile engine (needs processor_manager + mqtt_service + stores for scene activation)
profile_engine = ProfileEngine(
profile_store, processor_manager,
mqtt_service=mqtt_service,
scene_preset_store=scene_preset_store,
target_store=picture_target_store,
device_store=device_store,
)
# Create auto-backup engine
auto_backup_engine = AutoBackupEngine(