This should be part of what gets triggered in `emit_refresh`. The current behaviour as per your code:

17:00 -> set the emit_refresh to be called at 00:00
00:00 -> refresh is emited
17:00 -> day_start is called