def set_status(self, enabled):
self.__manual_update_time = time.time()<EOL>if enabled:<EOL><INDENT>data = self._controller.command(self._id,<EOL>'<STR_LIT>',<EOL>wake_if_asleep=True)<EOL>if data['<STR_LIT>']['<STR_LIT:result>']:<EOL><INDENT>self.__is_auto_conditioning_on = True<EOL>self.__is_climate_on = True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>data = self._controller.command(self._id,<EOL>'<STR_LIT>',<EOL>wake_if_asleep=True)<EOL>if data['<STR_LIT>']['<STR_LIT:result>']:<EOL><INDENT>self.__is_auto_conditioning_on = False<EOL>self.__is_climate_on = False<EOL><DEDENT><DEDENT>self.update()<EOL>
Enable or disable the HVAC.