Option to enable grayscale in OS at bedtime

Digital wellbeing in Android has the option to enable grayscale between certain times each night, but I would like to be able to control this through sleep so I don’t have to change the start time manually to match my alarm times.