Thanks Pete and Yogendraj for suggestion,
The first issue is that my dimmer light bulb start flickering when the MCU is reboot unless i change the value from blynk, If i use this line
dimmer.setPower(50)
then as Pete Sir said this could be annoying in some situations, such as a light in a bedroom which would suddenly go to 50% brightness in the middle of the night
First i want to stop dimmer light flickering when MCU reboot before BLYNK_CONNECTED / Blynk.syncVirtual.
Can we store its state using writing EEPROM/SPIFFS memory and after reboot restore state using reading EEPROM/SPIFFS memory.