This temple is at Vallikode, Pirayiri, Palkkad District. Legends speak about the elderly lady of Kootala House who was an ardent devotee of Lord Sree Rama. Once two boys visited her asking for food. The lady saw some divine presence in them and served them milk and fruits. They left saying that she would be blessed by the deities she worshipped. That night she had a dream in which he saw the two boys as Rama and Lakshmana. In her joy at this revelation, she donated all her property to Lord Vilwadrinathan at Thiruvilwamala. The entrance of the old house where the two boys sat
more to have food is believed to have the divine presence of Rama and Lakshmana and pujas are offered there even today. Under the peepal tree in front of the house is the figure of an elephant in stone. It is believed to be the elephant on which the lady used to go to Thiruvilwamala to worship the Lord. Today it is considered as a spot for swearing the truth. There is also a pond which is spread over two acres which never goes dry. The astrological finding shows the Valayappully Devi temple to be more than eight hundred years old. A Brahmin devotee is believed to have placed an idol of his favourite deity, the goddess of Kodungaloor in the forest where the temple stands now. Behind this temple facing east is the Thiruvalayanat Bhagavathy Temple which is believed to be the mother of Valayanapully Bhagavathy. There is also a Melkaavu in which the fierce form of Bhadrakali is consecrated. To pacify the Goddess the top is left open so that the Bhagavathy sits open to the rain and the sun. To the right of this Goddess is the idol of Manthrikan, a staunch devotee of Valayapully Bhagavathy. The rituals of this temple go beyond religious divisions and the procession at night during the festival goes to a Muslim prayer hall. The head of the Nair family is offered betel leaves and arecanut and oil for lighting the lamps in the prayer hall is offered in return.