It doesn’t need to run on a schedule if you set it up the right way. You need to trigger both on sundown and on temp going below. Then in the conditions, test both conditions again. See the community guide below, especially the part from the chapters " My automation does not always work (AKA: why won’t the trigger always fire)"