hello and welcome to HCM,
Since you have tubes in your ear, there is always a chance for them to get infected especially if water goes inside or if you have a super added sinus
Since the discharge is coming and you have bad odor then in all likelihood thats the case. You need to start a course of antibiotics and also maintain good AURAL HYGIENE which implies that you should not meddle or pick your ears and you should not allow water to go inside the ear.
If the problem persists then you need to definitely see your ENT who can assess the state of the ear drum and also the ear bone to offer you a permanent solution to your problems.
get well soon
Dr Sriram Nathan