Depending on your situation, a set of locking adjustable dumbbells (such as these: https://powerblock.com/product/sport-series/) might be a decent middle ground between the ideal gym and just doing bodyweight exercises.
They're small enough that you can store and use them in most rooms, and in my experience, the ease with which you can add and remove weight reduced the friction of deciding whether or not to work out, which helps a lot when trying to start a consistent habit.
They're not as versatile as an actual gym, but I got a pair of these when between gyms for a couple of years, and you can do a lot with them if you're creative. (For example--instead of squats and deadlifts, which would have required far more weight than I had available, I switched to lunges and one-legged squats).
They're small enough that you can store and use them in most rooms, and in my experience, the ease with which you can add and remove weight reduced the friction of deciding whether or not to work out, which helps a lot when trying to start a consistent habit.
They're not as versatile as an actual gym, but I got a pair of these when between gyms for a couple of years, and you can do a lot with them if you're creative. (For example--instead of squats and deadlifts, which would have required far more weight than I had available, I switched to lunges and one-legged squats).