Complex Chrismaslight Automation

You have misunderstood the purpose of the Solution tag. Refer to guideline 21 in the FAQ.

You marked your own post as the Solution yet it’s based on the example I provided you eight days ago. Without that example, you wouldn’t have the basis for fulfilling your original requirements.

In addition, the example you posted appears to have fewer requirements because it no longer takes the device_trackers into account. Anyone reading the requirements you specified in your first post will be led to an alleged solution that doesn’t fulfill all of them.

Anyway, I hope you and your family enjoy the Christmas lighting.