Thermostat resolution
Posted: Saturday 24 September 2022 19:57
Is there any way to get virtual thermostat resolution from 0.5 to 0.1 ?
Code: Select all
function SetpointUp() {
var curValue = parseFloat($('#setpoint_popup #popup_setpoint').val());
curValue += 0.1;
//curValue = Math.round(curValue / 0.1) * 0.1;
var curValueStr = curValue.toFixed(1);
$('#setpoint_popup #popup_setpoint').val(curValueStr);
}
function SetpointDown() {
var curValue = parseFloat($('#setpoint_popup #popup_setpoint').val());
curValue -= 0.1;
//curValue = Math.round(curValue / 0.1) * 0.1;
var curValueStr = curValue.toFixed(1);
$('#setpoint_popup #popup_setpoint').val(curValueStr);
}
timmpo wrote: ↑Thursday 29 September 2022 18:03 I found it in domoticz/www/js/domoticz.js
tanx anyway!
Code: Select all
function SetpointUp() { var curValue = parseFloat($('#setpoint_popup #popup_setpoint').val()); curValue += 0.1; //curValue = Math.round(curValue / 0.1) * 0.1; var curValueStr = curValue.toFixed(1); $('#setpoint_popup #popup_setpoint').val(curValueStr); } function SetpointDown() { var curValue = parseFloat($('#setpoint_popup #popup_setpoint').val()); curValue -= 0.1; //curValue = Math.round(curValue / 0.1) * 0.1; var curValueStr = curValue.toFixed(1); $('#setpoint_popup #popup_setpoint').val(curValueStr); }
it seems to be a little different now
can you help us with the thermostat step?
waltervl wrote: ↑Tuesday 09 January 2024 22:12 In 2024.1 stable there is a new setpoint device that has various settings including resolution: https://www.domoticz.com/wiki/Dummy_for ... t_Setpoint
The old thermostat devices (pre 2024.1) are converted to the new setpoint device during the upgrade.
So no need to changes the JavaScript code ....