After scouring the web, I was able to find and hack a python script to be able to control my thermostat. Thanks to code from Brad Goodman, my modified version is working how I like it to.
There are three things you need to edit to have the script work for you. First, edit the USERNAME variable with the email login and PASSWORD with the password to your mytotalconnectcomfort.com account. When you log in and enter the page for your thermostat control, the web url will contain the device ID for that thermostat. For example, web address https://mytotalconnectcomfort.com/portal/Device/Control/542695 means that my device ID is 542695. You will enter this number for DEVICE_ID in my python script without any quotation marks.
When downloading the script, remember to check that it has execution permissions with chmod +x therm.py on linux. You can see the arguments available by doing python therm.py -help. The following are the options available:
- Cooling: -c temperature -t hold_time
- Heating: -h temperature -t hold_time
- Status: -s
- Cancel: -x
The hold_time is in the unit of hours. so -t 1 would be 1 hour. The temperature is configured to be fahrenheit, but can be set to celsius. Cancel means to cancel the current temporary settings. And status prints the following:
% python therm.py -s
Indoor Temperature: 82.0
Indoor Humidity: 37.0
Cool Setpoint: 82.0
Heat Setpoint: 74.0
Hold Until : 0Status Cool: 0
Status Heat: 0
An example of using the script to set the temperature to cool to 76F for 2 hours would be:
python therm.py -c 76 -t 2In the future I will be showing how I use this script to allow my thermostat to be controlled by IFTTT and Amazon Echo.