Haiku Change the heating program depend outdoor temperature

Matteo

New Member
I need to create a script in haikuhelper, to do the following:
 
if the flag Z is on , when the external temperature sensor, at night it is inside a certain rangeof temperature
activates the flag x
if the flag Z is on, when the temperature at night is another interval activates the flag y
etc.. etc..
 
the z flag activates the haikuhelper script
the x and y flag activates the heating program in the hai controller
This I need to change the heating program as a function of the minimum outdoor temperature
In fact, I have various programs called from flags
 
anyone can help me to write this program?
i am not a programmer 
 
thanks a lot
Matteo
 
Hello....
I do not have thermostats but only temperature sensors in all rooms.
my heating is located under floor and has an inertia of about 2 hours.
I noticed that the best way to exploit it and save energy is program activation intervals dependent on the outside temperature

Matteo
 
Hi Matteo, nice to meet someone so close to me (I'm in Brescia).
I agree with the comment above: why use HH for the script while the OPII can do it directly?

My temperature sensor act just like security zone and go "insecure" when temperature is below the threshold I set them to. So you just need to set the threshold at the temperature you want and at the right time check if it's insecure and then start the script you need.

Send me a private message if you need help, maybe in Italian I'll be clearer...
 
Yes, you should be able to do this right on the controller as others have suggested. But you can use HaikuHelper as well. Unless you need specific advanced features that the HAI controller doesn't have built in, this kind of functionality is better put right on the controller.
 
Is there an easy way to sendNotification if the either my thermostats drops below a certain temp? Help a newbie out! :)
 
@al
al98t said:
Is there an easy way to sendNotification if the either my thermostats drops below a certain temp? Help a newbie out! :)
Sure,
Code:
function onThermostatTemperatureChange(thermostat) {
	checkThermostatTemperatureValidity(thermostat, 2); // Check for 2 degree deviation
}

function checkThermostatTemperatureValidity(thermostat, maxDeviation) {
	maxDeviation = Math.abs(maxDeviation);
	
	var temperature = parseFloat(thermostat.temperatureDescription);
	var coolSetpoint = parseFloat(thermostat.coolSetpointDescription);
	var heatSetpoint = parseFloat(thermostat.heatSetpointDescription);
	
	if((temperature < heatSetpoint-maxDeviation) || (temperature > coolSetpoint+maxDeviation)) {
		helper.sendTroubleNotification(controller, "Thermostat out of range: " + thermostat.bestDescription + " (" + thermostat.temperatureDescription + ")");
	}
}
 
Nice,  I like that now that I see how you did it. Especially that it works for cooling and heating.
 
After thinking about it for the day I actually did this. Tell me what you think.
 
I already have Freeze Alarm on but I dont want to wait until it hits 40 to get triggered. So in PC Access in the automation programming. Every 5 min check the thermostat current temp. If it drops below 50 it will generate a message to the console with beep. Once that happens then HH automatically gets notified and pushes notification to email and phone. In addition to that I have it clear the message after 3 minutes so if the temp is still low will keep alerting me until its resolved.
 
You can of course alter it to just compare to a certain value if that's what you prefer.


Yes, your solution is similar and should work fine as well.
 
Back
Top