Color blend

Hey everyone

On my long list of things to automate with HA, is to create an automation that varies the color blend of a light/lights based on progress/input value.


  • Outside temperature red/blue blend, -20 is dark blue, +40 is bright red
  • 3d print progress - green is 100%, blue is 0%

Has anyone here figured out a simplish way to do this that I can reuse?

If not… all good, will code myself and share back