Help for a simple MQTT Switch with slider number to set the time

Buogiorno, is a few weeks that I’m trying to find in the forum a simple configuration for a switch (MQTT for esp8266 or sonoff) with manual on and off and slider number to set the switching on and off at certain times. currently I have only managed with manual power on in this forum there are valid projects in “shared your project” but then other users ask for additions is the project gets complicated. I’m sure it can be useful to many others, thank you in advance.