Upvoted and Resteemed by the MAP-AAKOM community.
In Tibetan Buddhism many so-called demons are not actually evil, they are often protectors of knowledge or tests for the individual to overcome fears - once overcome, the demon is seen in a new light.
I mention this to be helpful, but am not absolutely clear whether your demon turned into your grandfather, or if they were two different beings.