def send_message(self, index, message="<STR_LIT>"):
body = {"<STR_LIT>": {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": self.thermostats[index]['<STR_LIT>']},<EOL>"<STR_LIT>": [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT>": {<EOL>"<STR_LIT:text>": message[<NUM_LIT:0>:<NUM_LIT>]<EOL>}}]}<EOL>log_msg_action = "<STR_LIT>"<EOL>return self.make_request(body, log_msg_action)<EOL>
Send a message to the thermostat