Motion Sensing and Illuminance Threshold based Lights Automation that Dims and Changes Color Temperature according to Sun Elevation

It seems I need to follow this strategy here:

I will update the gists, and there should be no requirement to update automations.xml if you’ve already applied automation from this blueprint.