I did similar for my lights, I just have a cronjob on my router that runs "sunwait" utility to pause until sunset, then uses curl to hit the "power on" endpoint of my $15 sonoff switch flashed with tasmota.
Manual on/off is just a URL shortcut in my chrome bookmark bar.
Basic but does what I want, turns light on when it starts to get dark, and simple bookmark on my laptop and phone to toggle power on/off manually.