pyecobee/__init__.py
def set_mic_mode(self, index, mic_enabled):
        '''Enable/disable Alexa mic (only for Ecobee 4)
        Values: True, False
        '''
        
        body = {
            'selection': {
                'selectionType': 'thermostats',
                'selectionMatch': self.thermostats[index]['identifier']},
            'thermostat': {
                'audio': {
                    'microphoneEnabled': mic_enabled}}}

        log_msg_action = 'set mic mode'
        return self.make_request(body, log_msg_action)
def set_mic_mode(self, index, mic_enabled):
        '''Enable/disable Alexa mic (only for Ecobee 4)
        Values: True, False
        '''
        
        body = {
            'selection': {
                'selectionType': 'thermostats',
                'selectionMatch': self.thermostats[index]['identifier']},
            'thermostat': {
                'audio': {
                    'microphoneEnabled': mic_enabled}}}

        log_msg_action = 'set mic mode'
        return self.make_request(body, log_msg_action)
Enable/disable Alexa mic (only for Ecobee 4)
        Values: True, False