fix: align settings controls with API limits

This commit is contained in:
Yurii committed 2026-11-30 01:15:08 +03:00
1 parent 7c6e85b3f6
commit 9f66402548
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ bool publishHaEntity(HaEntity entityId, bool remove) {
number->mode = HA::NumberMode::BOX; number->mode = HA::NumberMode::BOX;
number->min = 1.5f; number->min = 1.5f;
number->max = 10; number->max = 10;
number->step = 0.01f; number->step = 0.001f;
number->icon = "mdi:multiplication-box"; number->icon = "mdi:multiplication-box";
number->enabledByDefault = false; number->enabledByDefault = false;
} }
@@ -144,7 +144,7 @@ bool publishHaEntity(HaEntity entityId, bool remove) {
number->commandTopic = number->stateTopic + "/set"; number->commandTopic = number->stateTopic + "/set";
number->category = HA::Category::CONFIG; number->category = HA::Category::CONFIG;
number->mode = HA::NumberMode::BOX; number->mode = HA::NumberMode::BOX;
number->min = 0.001f; number->min = 0;
number->max = 1000; number->max = 1000;
number->step = 0.001f; number->step = 0.001f;
number->icon = "mdi:alpha-p-circle-outline"; number->icon = "mdi:alpha-p-circle-outline";
+5 -5
View File
@@ -187,7 +187,7 @@
<div class="grid"> <div class="grid">
<label> <label>
<span data-i18n>settings.heating.turboFactor</span> <span data-i18n>settings.heating.turboFactor</span>
<input type="number" inputmode="decimal" name="turbo_factor" min="1.5" max="10" step="0.1" required> <input type="number" inputmode="decimal" name="turbo_factor" min="1.5" max="10" step="0.001" required>
</label> </label>
<label> <label>
@@ -234,7 +234,7 @@
<div class="grid"> <div class="grid">
<label> <label>
<span data-i18n>settings.heating.hyst.value</span> <span data-i18n>settings.heating.hyst.value</span>
<input type="number" inputmode="decimal" name="hysteresis[value]" min="0.05" max="5" step="0.05" required> <input type="number" inputmode="decimal" name="hysteresis[value]" min="0.05" max="15" step="0.01" required>
</label> </label>
</div> </div>
@@ -427,7 +427,7 @@
<label> <label>
<span data-i18n>settings.equitherm.targetDiffFactor.title</span> <span data-i18n>settings.equitherm.targetDiffFactor.title</span>
<input type="number" inputmode="decimal" name="target_diff_factor" min="0" max="10" step="0.01" required> <input type="number" inputmode="decimal" name="target_diff_factor" min="0" max="10" step="0.001" required>
<small data-i18n>settings.equitherm.targetDiffFactor.note</small> <small data-i18n>settings.equitherm.targetDiffFactor.note</small>
</label> </label>
</div> </div>
@@ -454,7 +454,7 @@
<div class="grid"> <div class="grid">
<label> <label>
<span data-i18n>settings.pid.p</span> <span data-i18n>settings.pid.p</span>
<input type="number" inputmode="decimal" name="p_factor" min="0.1" max="1000" step="0.01" required> <input type="number" inputmode="decimal" name="p_factor" min="0" max="1000" step="0.001" required>
</label> </label>
<label> <label>
@@ -511,7 +511,7 @@
<div class="grid"> <div class="grid">
<label> <label>
<span data-i18n>settings.pid.deadband.p_multiplier</span> <span data-i18n>settings.pid.deadband.p_multiplier</span>
<input type="number" inputmode="decimal" name="deadband[p_multiplier]" min="0" max="5" step="0.001" required> <input type="number" inputmode="decimal" name="deadband[p_multiplier]" min="0" max="1" step="0.001" required>
</label> </label>
<label> <label>