diff --git a/CHANGELOG.md b/CHANGELOG.md index f31d94f4..573ef657 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,10 +23,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Option for the brightness automations based on sleep mode to run on SteamVR launch. This now happens automatically when a HMD is connected. +## [1.13.3] + ### Fixed +- Battery level based power automations turning off devices above the threshold - Certain types of selection in input fields (e.g. Ctrl+A) being blocked +### Changed +- Window titlebar icons + ## [1.13.2] ### Fixed diff --git a/src-ui/app/services/power-automations/turn-off-devices-on-battery-level-automation.service.ts b/src-ui/app/services/power-automations/turn-off-devices-on-battery-level-automation.service.ts index bee58c9b..9fc0fd10 100644 --- a/src-ui/app/services/power-automations/turn-off-devices-on-battery-level-automation.service.ts +++ b/src-ui/app/services/power-automations/turn-off-devices-on-battery-level-automation.service.ts @@ -65,13 +65,13 @@ export class TurnOffDevicesOnBatteryLevelAutomationService { case 'Controller': if (!this.config.turnOffControllers) return; if (this.config.turnOffControllersOnlyDuringSleepMode && !sleepMode) return; - if (currentLevel > this.config.turnOffControllersAtLevel) return; + if (currentLevel * 100 > this.config.turnOffControllersAtLevel) return; threshold = this.config.turnOffControllersAtLevel; break; case 'GenericTracker': if (!this.config.turnOffTrackers) return; if (this.config.turnOffTrackersOnlyDuringSleepMode && !sleepMode) return; - if (currentLevel > this.config.turnOffTrackersAtLevel) return; + if (currentLevel * 100 > this.config.turnOffTrackersAtLevel) return; threshold = this.config.turnOffTrackersAtLevel; break; default: