feat: added entities to HA: connected, rssi, battery, humidity for indoor and outdoor sensors; some entities are disabled by default

This commit is contained in:
Yurii
2024-11-01 02:36:45 +03:00
parent 261a53207c
commit 94e8288d76
3 changed files with 408 additions and 189 deletions

View File

@@ -1101,7 +1101,7 @@ bool jsonToSettings(const JsonVariantConst src, Settings& dst, bool safe = false
if (!src["heating"]["hysteresis"].isNull()) {
float value = src["heating"]["hysteresis"].as<float>();
if (value >= 0 && value <= 5 && fabs(value - dst.heating.hysteresis) > 0.0001f) {
if (value >= 0.0f && value <= 15.0f && fabs(value - dst.heating.hysteresis) > 0.0001f) {
dst.heating.hysteresis = roundd(value, 2);
changed = true;
}