![]() |
|
Recording max temp from scs - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Products (https://www.comfortforums.com/forum-3.html) +--- Forum: Questions on Using Comfort (https://www.comfortforums.com/forum-159.html) +--- Thread: Recording max temp from scs (/thread-2320.html) |
- wexfordman - 06-24-2011 Hi, I am trying to get comfort to store in a counter, the highset recorded temp from an scs!! Here is what I have done 1) The SCS temp is converted to celsius and imported into counter kitchentemp. 2) I have a second counter, maxkitchemtemp, which is the counter that I aim to use to store the highest recorded kitchen temp. 3) I have a response activated by sensor8 response written as follows Get Counter MaxTempKitch Subtract Kitchentemp If LastActionValue < 0 Then Copy Counter Kitchentemp To MaxTempKitch End If So in theory, if maxkitchentemp is currently 15, and kitchentemp is 21, then get maxkitchen temp = 15 subtract kithchen temp of 24 (15-24=-9) lastaction value is now less than 0, so copy kitchentemp counter (24) to maxkitchentemp counter. In theory, after this, maxkitchentemp should be 24, buit it is not. Any help would be appreciated. Regards, Eamon - leonchue - 06-29-2011 Try replacing your line \"If LastActionValue < 0 Then\" with this \"If LastActionValue >=128 Then\" It should work this time
- wexfordman - 07-13-2011 Hi Leone, At last, I finally got round to doing what you said... and it worked!! Not sure why, could you clarify ? Also, the next thing I wanted to do was time stamp the event. So I have created counters for day, month and year and added it to the response as follows:- Get Counter MaxTempKitch ! Subtract Kitchentemp If LastActionValue >= 128 Then Copy Counter Kitchentemp To MaxTempKitch GetParameterValue Day Set Kitchendate GetParameterValue Month Set kitchenmonth GetParameterValue Year Set kitchenyear End If Only thing is, my day, month and year counters remain empty!! - leonchue - 07-14-2011 GetParameterValue Day Set Kitchendate GetParameterValue Month Set kitchenmonth GetParameterValue Year Set kitchenyear This part should work, unless the max temp is not triggered. Maybe your modified program has not been downloaded into the system (ie. Comfort and CWM) or the wrong counters are referenced in CWM? Just a suggestion, maybe you may want to have a \"max temp reset to 0\" button/response. Useful for debugging purposes as well
|