Compare commits

...

3 Commits

Author SHA1 Message Date
Jaylyn Barbee
f40bd3e49c Fix typo in LightSwitchStateManager filename 2025-11-20 09:41:40 -08:00
Niels Laute
d052e33607 Update doc/devdocs/modules/lightswitch.md 2025-11-20 09:26:11 -08:00
Jaylyn Barbee
bdfa7c0f5f Clarify LightSwitchService and LightSwitchStateManager roles
Updated LightSwitch module documentation to clarify the role of LightSwitchService and LightSwitchStateManager.
2025-11-20 09:24:25 -08:00

View File

@@ -33,9 +33,12 @@ The **Light Switch** module lets users automatically transition between light an
> **Note:** Using the shortcut overrides the current schedule until the next transition event.
* **LightSwitchService**
Reads settings and applies theming. Runs a check every minute to ensure the state is correct.
* **LightSwitchService.cpp**
is the heart beat of the module. Controls ticking every minute and depending on user actions (manual override, settings changing, etc) triggers the state manager to perform the corresponding operation.
* **LightSwitchStateManager.cpp**
handles updating the state based on the signals sent by LightSwitchService.
* **SettingsXAML/LightSwitch**
Provides the settings UI for configuring schedules, syncing location, and customizing shortcuts.