mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-13 19:54:28 +05:00
fix: display of current heating temp on dashboard
This commit is contained in:
@@ -144,14 +144,14 @@
|
|||||||
<th scope="row" data-i18n>dashboard.states.sHeatActive</th>
|
<th scope="row" data-i18n>dashboard.states.sHeatActive</th>
|
||||||
<td><input type="radio" class="sHeatActive" aria-invalid="false" checked disabled /></td>
|
<td><input type="radio" class="sHeatActive" aria-invalid="false" checked disabled /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th scope="row" data-i18n>dashboard.states.mHeatSetpointTemp</th>
|
|
||||||
<td><b class="mHeatSetpointTemp"></b> <span class="tempUnit"></span></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" data-i18n>dashboard.states.mHeatTargetTemp</th>
|
<th scope="row" data-i18n>dashboard.states.mHeatTargetTemp</th>
|
||||||
<td><b class="mHeatTargetTemp"></b> <span class="tempUnit"></span></td>
|
<td><b class="mHeatTargetTemp"></b> <span class="tempUnit"></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" data-i18n>dashboard.states.mHeatSetpointTemp</th>
|
||||||
|
<td><b class="mHeatSetpointTemp"></b> <span class="tempUnit"></span></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" data-i18n>dashboard.states.mHeatCurrTemp</th>
|
<th scope="row" data-i18n>dashboard.states.mHeatCurrTemp</th>
|
||||||
<td><b class="mHeatCurrTemp"></b> <span class="tempUnit"></span></td>
|
<td><b class="mHeatCurrTemp"></b> <span class="tempUnit"></span></td>
|
||||||
@@ -409,7 +409,7 @@
|
|||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
|
|
||||||
// Graph
|
// Graph
|
||||||
setValue('#tHeatCurrentTemp', result.master.indoorTempControl
|
setValue('#tHeatCurrentTemp', result.master.heating.indoorTempControl
|
||||||
? result.master.heating.indoorTemp
|
? result.master.heating.indoorTemp
|
||||||
: result.master.heating.currentTemp
|
: result.master.heating.currentTemp
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user