Advanced hysteresis settings (#201)

* feat: added more hysteresis settings

* fix: heating hysteresis switch fixed

* refactor: added localization for hysteresis
This commit is contained in:
Yurii
2025-12-09 19:27:47 +03:00
committed by GitHub
parent cb8251dd40
commit 01192a59f5
14 changed files with 180 additions and 33 deletions

View File

@@ -103,12 +103,17 @@ struct Settings {
bool enabled = true;
bool turbo = false;
float target = DEFAULT_HEATING_TARGET_TEMP;
float hysteresis = 0.5f;
float turboFactor = 7.5f;
uint8_t minTemp = DEFAULT_HEATING_MIN_TEMP;
uint8_t maxTemp = DEFAULT_HEATING_MAX_TEMP;
uint8_t maxModulation = 100;
struct {
bool enabled = true;
float value = 0.5f;
HysteresisAction action = HysteresisAction::DISABLE_HEATING;
} hysteresis;
struct {
uint8_t highTemp = 95;
uint8_t lowTemp = 90;