Jump to content

Honeywell Redlink Total Comfort Connect data into ISY variables


Scottmichaelj

Recommended Posts

So I took the exising script thats been posted for the tags, stripped line one and just added the "62" for thermostat as a tag type. I then removed the BatteryV section from below and saved a new scripted name "Honeywell TCC to ISY" as a new KumoApp, ran it and now I am getting humidity and temp to the ISY.
 
Here is my code:
 

var tags = <#tags_[62]_N#>;
var isy_ip=<%ISY IP Address%>;
var isy_user = <%ISY username%>;
var isy_password=<%ISY password%>;
var isy_RESTcall = "http://"+isy_user+":"+isy_password+"@"+isy_ip+"/rest/vars/set/2/";

tags.forEach(
function (tag) {
    tag.updated = function () {
		var cur_name = tag.name;
		var valid_device = true;
		switch(cur_name) {
			case "DOWNSTAIRS":
				var isy_variable_temp = 27;
				var isy_variable_humi = 28;
				break;
			case "UPSTAIRS":
				var isy_variable_temp = 29;
				var isy_variable_humi = 30;
				break;
				
			default:
				var valid_device = false;
		}
		if(valid_device==true){
			var tag_temp = Math.round((tag.temperature *1.8 +32));
			KumoApp.Log("Temp for "+cur_name+" ("+isy_variable_temp+") updated to "+tag_temp);
			KumoApp.httpCall(isy_RESTcall+isy_variable_temp+"/"+tag_temp, "GET");
			
			var tag_moisture = Math.round(tag.moisture);
			KumoApp.Log("Humidity for "+cur_name+" ("+isy_variable_humi+") updated to "+tag_moisture);
			KumoApp.httpCall(isy_RESTcall+isy_variable_humi+"/"+tag_moisture, "GET");

		} else {
			KumoApp.Log("Data from non-configured device: "+cur_name);
		}
    };
}
);

 
The variables and info update but the KumoApp log is showing "Data from non-configured device: null" - If anyone sees anything I should change let me know.
 
 
BTW CAO Gadgets have released a thermostat sensor now as well. -> http://caogadgets.com/kumostat.html

 

EDIT: For fun I just deleted the else {KumoApp.Log("Data from non-configured device: "+cur_name);} - and the error went away but the data is still being updated. It also would be interested to know if anyone has been able to use URL calling to control thermostats. Guess thats the next project!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.8k
    • Total Posts
      369.9k
×
×
  • Create New...