Any advice that we give is based on the information you have given us. You should always follow advice you have been given by a health professional.
As you have a long term health problem it is important that you take action and as you have said you have lost weight over the last year it looks like you have already started. As you have lost weight before and put most of it back on again once you reach a weight you are comfortable with you should focus on maintaining that weight.