Thermostat Scheduling & Adding New Event Types

Started by prairietech, January 02, 2016, 07:21:00 AM

prairietech

I've got the Gateway communicating with my CT50. Now I would like to do temperature scheduling using the Gateway instead of the Cloud based program.  Poking around in metrics.js I can see where events are handled but I have limited coding abilities.  Can someone provide some examples of thermostat scheduling as well as adding new events to the "pick the event type" drop down?

I'm not very good at writing the commands but can usually edit something to meets my needs.

Felix

I added 2 examples of thermostat events that will run on weekdays and set different heat points. These 2 examples will set a low heat point in the morning, ex when you leave to work, and a higher heat point when you return in the afternoon. You can follow these and other event code examples given in metrics.js to build other variants for cooling or different days or times etc.
The changes are posted in metrics.js, search for thermostat_H68_AM and thermostat_H73_PM, or you can just see the changeset.


prairietech

Thanks Felix! I can't wait to give it a try. Controlling my thermostat locally vs. over the Cloud would be great!