My husband is a negative person!

Hi, I recently got remarried (1 year ago) and I always tried to be a positive person. I have my struggles, which is why I decided to be a part of SCS. My husband knows that I try to be a positive person and he mocks my attempts to keep a good energy inside the house. He is so negative with everything that it started to take a toll on our relationship. He is struggling with work issues and he does not see that all the complaining and the negativity is making it worse for him. His energy is draining my energy and I noticed that I started to become a negative person as well – and that’s the last thing I want to do! How can I deal with him in a way not to let his energy affect my energy?