Changing Automation Parameters

I had defined a lighting automation to turn on lights at sunset when no one is home and it worked. Then I decided to change this automation to instead turn on light at 7pm when no one is home. In other words I only change this automation from sunset to 7pm. It then no longer worked.

However if I delete this automation and created a new one to turn on the lights at 7pm when no one is home. It worked. So it seems that when you want to change a parameter on an existing automation you need to delete it and created a new one. I have tested this a number of times with the same results.

Has anyone had this happened.