You can set a scence to achieve this.
1.Click me on homepage.
2.Select 'Scene'.
3.Click the '+' to create schedule.
4.Choose 'Schedule'.
5.Set a time and frequency. Click 'Next'.
6.Add task. Then choose the function you need.

Note:
If you have set a schedule to have a function to be on/off at a certain time, please repeat and set another certain time to have this function to be off/on.