Best way to have some things happen 30 minutes before sunset

I want to have it that 30 minutes before sunset on a Monday, certain lights will get turned on. Is this possible directly in HA or do I need to install something that can keep track of sunset, and once I do that, how do I have it trigger 30 minutes before?

Is it easier to do this in HA directly or in Node Red?

Never mind, i found this post: https://www.home-assistant.io/cookbook/automation_sun/

Thank you