Why the heck is a restart needed for each an every change to configuration.yaml?

Why bother creating all that in Node Red when there is a HA component to do all the hard work for you? (Adaptive Lighting, which works perfectly)