While I've built an impressive amount of flows for my smart home, now is the time I need some extra brains to help me
What I want: Change the light temperature of my living room lights from the time they turn on until 23:00 the same day. Starting from 3500 kelving from the time they turn on ending on 2500 at 23:00.
The lights are turned on gradually from another flow (using a light sensor and a range node), so the ON time is fairly random. At the end of the day the lights are turned of manually.
My initial thoughts were to again use a range node to gradually change from 'ohgodmyeyes'-light to 'candlelight-esque'. The main rub there is the lack of comparison scale. For the brightness this is done by my light-sensors, but there appears to not be something like that for time.
In a perfect world I'd like something that translates "ontime lights" - "23:00" into a diminishing value for a range node, or something like that. If at all possible, I'd also like to stay away from overly complex function nodes. My JS is minimal at best, and I'd like to keep understanding my automations...
In short: (convert time range to number) -> (trigger on that number changing) -> (send number to a change node) -> (adjust light temp).
The last part (adjust light temp) is the only one I'm currently able to... And while my solution works, based on a series of inject triggers, it's just too janky.
So, I'd love to hear your thoughts!