Changing the attribute of an entity in an automation

Would anyone know how to change the attribute of a light entity in an automation?
I want to change the effect attribute of my WLED lights to Aurora at night and reset it to solid at 4 am. I can’t seem to figure out how to do this. It seems like something that should be easy to do?
I did see a python script that’s 5 years old but it might seems like too much just for changing an attribute…

Use the light.turn_on action (formerly known as service), which includes the effect in its data. See the end of this table: