Restoring the state after power dailure

How to restore the precious state after power restoreation in MI Light?
Eg. Schedule starts at 6 pm power on, pow off at 6 am… in between if power fluxtuates, bulb remain off.