pyecobee/__init__.py
def set_occupancy_modes(self, index, auto_away=None, follow_me=None):
        '''Enable/disable Smart Home/Away and Follow Me modes
        Values: True, False
        '''
        
        body = {
            'selection': {
                'selectionType': 'thermostats',
                'selectionMatch': self.thermostats[index]['identifier']},
            'thermostat': {
                'settings': {
                    'autoAway': auto_away,
                    'followMeComfort': follow_me}}}

        log_msg_action = 'set occupancy modes'
        return self.make_request(body, log_msg_action)
def set_occupancy_modes(self, index, auto_away=None, follow_me=None):
        '''Enable/disable Smart Home/Away and Follow Me modes
        Values: True, False
        '''
        
        body = {
            'selection': {
                'selectionType': 'thermostats',
                'selectionMatch': self.thermostats[index]['identifier']},
            'thermostat': {
                'settings': {
                    'autoAway': auto_away,
                    'followMeComfort': follow_me}}}

        log_msg_action = 'set occupancy modes'
        return self.make_request(body, log_msg_action)
Enable/disable Smart Home/Away and Follow Me modes
        Values: True, False