Page 1 of 1

Thermostat resolution

Posted: Saturday 24 September 2022 19:57
by timmpo
Is there any way to get virtual thermostat resolution from 0.5 to 0.1 ?

Re: Thermostat resolution

Posted: Monday 26 September 2022 12:55
by waltervl
Not easy, it is hardcoded in the source code

Edit: see for reference viewtopic.php?t=39017

Re: Thermostat resolution

Posted: Thursday 29 September 2022 18:03
by timmpo
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);
}




Re: Thermostat resolution

Posted: Thursday 12 January 2023 7:39
by Nautilus
As a feature request, it would be great if the resolution could be set in device parameters. As for some thermostats the resolution is 0.1, for some 0.5 and for some even 1.0. As a configurable value, everyone could set it to whatever the actual thermostat device follows... 8-)

Re: Thermostat resolution

Posted: Tuesday 09 January 2024 22:06
by ssk17051980
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?

Re: Thermostat resolution

Posted: Tuesday 09 January 2024 22:12
by waltervl
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 ....

Re: Thermostat resolution

Posted: Wednesday 10 January 2024 8:17
by ssk17051980
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 ....

Thx !!!!!