Schedule does not work after electricity resumes

My tinxy single node switch has power ON/OFF scheduled. The switch does not have inverter supply. The wifi router has inverter supply. In case of a power cut during the scheduled ON/OFF time, the device does not turn ON/OFF once electricity resumes. This command is just lost. How to make the schedule work once electricity resumes ?

Schedules run offline, so it cannot be run if the run time is in the past. when the device was off.
To workaround it, use Scenes. When power comes back , server will let the device know of the new OFF request even if it takes 5 days to come back online. Scenes makes sure the message is delivered to the device at least once.