Offset Time of Day or Sunset/Sunrise value?

I’d like my kitchen light to turn on with a presence detector, BUT only during the night, AND offset so it actually starts turning on a bit earlier and stops turning on a bit later (I.e., cover more of the night period).

I reckon the Sunrise/Sunset attributes of the Sun entity would work for this but I don’t know how to offset these values (let’s say an hour before sunset and an hour after sunrise).

Please help, thanks.

There’s an example here

oh, it’s right there! Thanks :slight_smile: