Soak the sambar onion (shallots) in little water for 5 – 10 minutes and peel the skin off. Chop them finely and keep aside. Chop the green chilies and curry leaf finely.
Heat a pan with 2 tsp oil. Add mustard seeds and when they splutter, add urad dal and asafetida. Roast for a few seconds till the dal turns golden yellow.
Now add the chopped shallots, green chilies, curry leaves, a pinch of salt and sauté for 2-3 minutes over medium flame till the onion turns translucent. Switch off the flame and take the pan off the stove.
Now add freshly grated coconut and mix well and it will get sautéed in the heat of the pan itself.
Take the idli/dosa batter in a bowl and transfer the entire content of the pan to the batter and mix well.
Heat the paniyaram pan and few drops of oil in each mould. Pour the batter with the help of a spoon in each mould till they are 3/4th full. Close the pan with a lid and let it cook for 2-3 minutes.
Turn the paniyaram in each mould upside down with the help of a stick or spoon and let the other side also cook for 2-3 minutes. Add few more drops of oil if needed. No need to close the pan with the lid this time.
Once cooked till a toothpick comes out clean when inserted, shake off the paniyarams onto a plate and repeat with the rest of the batter.
Serve hot with any chutney of your choice. I served with Onion Chutney.