I had my first tank years ago in the direct glare of window thinking natural sunlight would be good for plants when aquarium light was out. My tank went green every 3days as well
Since then I keep my tanks in nook in room where chimney brest gives partial shading from window
I also use an automatic plug timer like you might use with christmas lights so my aquarium light is only on 10hours or there abouts So lights off when no one in house to see it anywho

If Im away for day or so fish+plants still get required controlled lighting too, its a win, win
But like johnarthur said if you go blackout method you will have remove plants to seperate aquarium cos prolonged blackout would kill them They require 10hours light a day to be healthy
Best of luck!