Well, it is a cat snake and looks like a Beddome's Cat Snake (Boiga beddomei). But not very sure. If anybody can help in exact identification, that will be great help.
It came right into the house during a rainy night, but later decided to go back to a nearby plant to take rest.
As per International Union for Conservation of Nature (IUCN), Beddome's Cat Snake (Boiga beddomei) is considered data deficient. Though its actual geographic distribution is unclear, there are numerous reports of species from Sri Lanka and different parts of Western Ghats, in India.
The snake in the video was recorded from Southern Western Ghats of Kerala ( Kannur district, Kerala, India.)