Now, being ill, he still has no consideration for your health. Does not communicate with you but tells the nursing staff and hospital staff exactly what is wrong but I have to guess. Just mean spirited. He has Parkinsons, dementia and incontinence. I know he must be miserable but I am all he has. His 2 adult daughters are living their lives.
OR...perhaps he doesn't recognize you as his "mate" any more and feels more comfortable sharing things with those that he sees 24/7.
There's no trying to figure out someone with a broken brain, so quit trying.
Instead just continue to be there for him if you want to, but I would probably limit how often you visit and for how long, as you and your mental health matter in this equation too.
I chose to keep limited contact with my mother even though I was all she had too. In reality, she "had" all the staff she'd sucked up to all those years and so does your husband. Dementia or not, if they know enough to treat only certain people badly, they know what they're doing. Period. Save yourself from the toxic fumes your husband emanates. He doesn't want to communicate with you, fine. You don't have to knock yourself out trying to. Limit your contact with him and save YOURSELF now because YOUR health matters too.
Best of luck to you.