kpldd23 Posted June 17, 2018 Posted June 17, 2018 Newbie here and took a crack at modifying some programs I found online (http://homeautomationguru.com/programming-your-insteon-thermostat-with-the-isy-994i/) to add some additional functionality (the "Eco" mode). I was hoping to get your input to see if it would work: First, created two state variables: TStatEco and TStatSchedule Program 1 (TStatEco): If status 'KPL button' is not off; then $TStatEco=2; else $TStatEco=1 Program Folder 1 (TStatNormal): Runs if $TStatEco=1 Program (EventDay): if schedule time; then $TStatSchedule=2 Program (EventDayVariable): if $TStatSchedule is 2; then run program (StateDay) Program (EventHome): if schedule time; then $TStatSchedule=1 Program (EventHomeVariable): if $TStatSchedule is 1; then run program (StateHome) Program (StateDay): no conditions; then set thermostats to desired heat/cool setpoints Program (StateHome): no conditions; then set thermostats to different heat/cool setpoints Program Folder 2 (TStatEco): Runs if $TStatEco=2 Program (EventDay): if schedule time; then $TStatSchedule=2 Program (EventDayVariable): if $TStatSchedule is 2; then run program (StateDay) Program (EventHome): if schedule time; then $TStatSchedule=1 Program (EventHomeVariable): if $TStatSchedule is 1; then run program (StateHome) Program (StateDay): no conditions; then set thermostats to desired heat/cool setpoints (five degrees different than "normal") Program (StateHome): no conditions; then set thermostats to different heat/cool setpoints (five degrees different than "normal")
kpldd23 Posted June 17, 2018 Author Posted June 17, 2018 Just noticed my first "bug" and was hoping there was something simple that I overlooked. The desired action was that I could press a button on a KPL and the change in $TStatEco would trigger the programs to run/re-evaluate in the Eco folder thus, changing the setpoints by five degrees. However, pressing the button the KPL is changing the variable but, the programs in the folder do not seem to be re-evaluating to change the setpoints.
paulbates Posted June 17, 2018 Posted June 17, 2018 (edited) I do something similar for similar keypad logic, and you can use the "if" statement from program 1 as the logic in folder 1 and 2, saving a program and variable (Tstateco). Unless other things will tweak tstateco as well. Edited June 17, 2018 by paulbates
paulbates Posted June 17, 2018 Posted June 17, 2018 (edited) I think the same is true for tstat schedule. You don't have to have logic for a variable in this case, that I can see, that runs a program. Have the program that checks the time period do the work. You may have to put a 3 - 5 second wait between each command to the thermostat, the PLM needs time to send and receive acknowledgements form the tstats. If your schedules are exclusive ... eg schedule 1: 8:00am to 10pm schedule 2: 10:01pm to 7:59am You could do 1 program with an else.. things in schedule 1 go under then, things in schedule 2 go under else Edited June 17, 2018 by paulbates
kpldd23 Posted June 17, 2018 Author Posted June 17, 2018 5 minutes ago, paulbates said: I do something similar for similar keypad logic, and you can use the "if" statement from program 1 as the logic in folder 1 and 2, saving a program and variable (Tstateco). Unless other things will tweak tstateco as well. Good point. In my case, I have two KPL's that I am using to trigger $TStatEco so, that would have been easy enough. Would only need/want to go with the variable option if I made this more complicated. For example, it would be nice to get the climate module and if it is within a certain temperature range outside, automatically trigger the Eco mode. Thank you for your input.
paulbates Posted June 17, 2018 Posted June 17, 2018 (edited) Yes, I use the climate module in similar way... ramp up HVAC if its gotten really hot/cold outside. Edited June 17, 2018 by paulbates
Recommended Posts