Variable arrays or more efficient way to manage thermostats?


#1

I have a couple of pistons that I adapted from my original CoRE setup. I tried to make it more efficient by having the schedule piston call the piston that actually changes my three thermostats. At least it’s a bit easier to add new settings this way. But I’d like to see if there’s an even better way to do it, perhaps with an array containing the time/thermostat/temperature data that could by cycled through. Is something like that possible? Then, instead of duplicating the schedule section for each time I want the temps changed I could just modify the array data at the top of the piston, if that makes sense.

(A few other notes if you’re interested in some of the details: I have three Radio Thermostat 3M-50 units. I want the piston to run only when we’re Home (which is most of the time since I work out of my home office.) Our varied schedules do not fit into most standard thermostat programs. With forced hot water heating it takes a long time to heat up and cool down, so the times are set accordingly. At some point I may work on making the times dependent on the outside temp so the target is actually hit at the time I want no matter how long it takes. That’s a project for another day though.)

This is the scheduling piston that I would like to make easier to manage and modify:

This is the piston that it calls to actually set the temp: