How to set a 6 hour timer

Hi guys, apolgies if I’m being silly but searched the internet and this forum and not seen what I’m looking for.

I want to have my ESP32 come on for 6 hours from when it’s powered up. It isn’t going to know the time/date because it will have no internet (the wifi it connects to is my phone’s hotspot if I need to make changes - but this will neither be there nor active at any given point).

Surely it must be possible to have it run for 6 hours and shutdown (in an ideal world, if constantly powered would run 6 hours then stop (not bothered about low power mode) for 18 hours and repeat).
In playlist I can set the number of times it runs but hard to know what to put as all the presets are different time lengths.
It’s never going to know correct date and time but I know the timing function still works when powered it just doesn’t remember previous time without RTC module which I don’t want to do.
Even a script would be better than nothing.

Many thanks for reading this.

When powered up it’ll start at 00:00 so if you set an “off” preset that starts at 06:00 and an “on” preset that starts at 00:00 in “Time and Macros - Time-controlled presets” (and at boot) that would do what you want

That’s a brilliant suggestion, can’t understand why I didn’t think of it myself but many thanks for taking the time to answer.

Or use: NL=360&NT=0&NF=0 or {"nl":{"on":true,"dur":360,"mode":0,"tbri":0}}
which is generic 6h timer

Once again, many thanks for your suggestion. It’s nice to be part of a such a friendly community where people actually try and help rather than berate you for being new to the environment.

Dave