I have hashimoto's, ehlers danlos, and fibromyalgia which all make weight loss feel impossible but I promise it's not. The biggest issue is that most people go to fad diets or unsustainable restrictive eating. Unless your body is retaining excessive amounts of fluid, being in a caloric deficit is guaranteed to make you lose weight. The Facebook group Macros Inc. is extremely helpful when it comes to teaching you how to properly and accurately count calories (going by serving size on the box is usually wrong and weighing everything in grams or ounces is significantly more accurate). They also talk about how different macro ratios may affect you and what ratio to use depending on your health, activity level, build, and other factors. Personally I do best on a higher fat/lower carb/moderate to high protein. Just to be Transparent tho, they do offer coaching but the group does not require you to be one of the Macro Inc coaches clients. However if you do decide you want a coach they are one of the more affordable coaches available and are not scammy and predatory from what I've heard.
What has helped me the most with energy levels is ensuring I get enough micronutrients either from supplements or eating a variety of foods. While on the topic of supplements taking PQQ, L-theanine, 5-htp, and turmeric have all improved my mental wellbeing and in return gave me more motivation to make the difficult decision of doing a workout or going for a walk. Not saying those will work for you but they all contributed to me feeling better and giving me the boost I needed to make that first step. I've also found the more active I am consistently the more energy I have. Even if that activity is something small.
What helped build me up to being more active was Chigong and tai chi. It is meditative, provides stretches that aren't as intense as something like yoga, and gets your body moving in a little to no impact way. It's also easy to shorten or extend the routine on a whim with how you are feeling during it. And because it is a form of meditation I feel like it also boosts my energy.
Being unmotivated isn't a bad thing and most people quit when they have a bad day or feel unmotivated or have a lack of drive. You need to be comfortable having a bad day and realizing a bad day doesn't ruin an entire week. Take those days to rest or do a hobby or simply spend time with yourself. Find you a motivational person to lean on but don't accidentally trick yourself into needing their validation and support to stay motivated. Remember that you are doing this for yourself and your health, no one else's.