Wall switch not always working

Friends, every once in a while I can’t power on my ceiling lamp using a wall switch. I need to do it twice, then the lamp powers on.

Lamp model: YLXD12YL

What is the issue here?

Please make sure if your have set “Default State” to off.

I want to have it dimmed by default. How do I do that without “default state” on?