I consider a homeless person no less than any other person. I've been known to let them shower and shave at our house, take them to dinner, buy them food or beers in the past.
Whether I help someone or feel kind depends a lot on circumstance: their attitude, my mood, my circumstances. I make no apologies when I say "no" to people for their time, whether they are offering or asking. I live my life as it suits me to live it. It's my time, my money, my consciousness that I choose to open or close to others. I assume that I am "wrong" some of the time for sharing or not sharing of my life, but I also know that it's my choice to make each time.
As for animals or pets, I generally consider them the same as people. Which means that those I know are closer and dearer to me than those I don't. Would I risk my life for an unknown human or other animal? Maybe. For a human or other animal known to me? Certainly and before an unknown, whether human or other type.
I lost the dearest being to me in my life, likely the closest to me any animal, human or otherwise, will ever be, last February. I still grieve for her every day. I'd consider destroying the remaining life on earth to bring her back. She was a cat, and I've never felt this way about any other being, and I've lost friends, family and other cats in my life before.
Life is life. We choose to or circumstance causes us to notice some lives more than others, but it is all life. I know Kiki was not "greater" or "more important" than any other life in the grand scheme of things, but neither am I or you. I also know that she was both greater and more important to me than any other life I've ever encountered, including my own. I'd gladly have traded my death for her life and still would if some fiendish metaphysical being should make that offer to me. I'd also be very tempted to trade other lives, which I'm pretty sure is at least somewhat evil, but until we face true temptation, which that would be, I don't think we have any notion of what evil is or what we are capable of, or just how culpable we are in the larger world we live within, sanctioning but not physically commiting evil on a daily basis.