@Robert_Bourne, the x minutes before/after sunset and sunrise is not currently supported in the if condition directly, but you can create a variable and update the variable according using an additional rule. See the example below, and please cast your vote if you’d like this offset feature to be implemented in the if condition as well.