kk7ds / somecomfort

A python client and utility for interacting with Honeywell thermostats
GNU General Public License v3.0
35 stars 27 forks source link

Add fan mode 'follow schedule' #8

Closed eklex closed 8 years ago

eklex commented 8 years ago

The fan mode array is missing a mode. When the fan mode is set to follow schedule on a US thermostat, Device.fan_mode() raises an out of range exception. The fan mode follow schedule is equal to 3.

Here are the current fan modes for the US thermostat:

This commit adds the new mode, and handles the IndexError exception.