Dimming Lights Based on Time of Day

I’ve been trying to set up my lights to automatically dim throughout the day, similar to how I had it working on Homeseer. The idea is to have the lights adjust based on the time of day, being dimmer in the morning, brightest at solar noon, and then slowly dimming again in the evening. Each room has its own settings because they have different needs. I’ve managed to get the basics working with some automations, but I’m running into a few issues.

First, I’ve set up a webhook to calculate the light levels based on the time of day and the room’s specific needs. This part seems to be working fine. However, when I try to adjust the lights every 10 minutes, the system doesn’t seem to recognize the new levels. It either stays at the current level or jumps too abruptly, which isn’t smooth at all.

I’ve also noticed that when I tap the switch, it doesn’t toggle between the calculated level and a higher level as I intended. Instead, it just turns off or stays on. I’m not sure if this is an issue with the switch itself or the way the automation is set up.

I’ve tried adjusting the automation settings and even rewrote the webhook to ensure it’s sending the correct values. But no matter what I do, the lights either don’t change at all or jump too much. I’m starting to think there might be a problem with how the system handles the light levels over time.

Has anyone else had success with a similar setup? I’d love to hear how you managed to get the lights to adjust smoothly throughout the day. Any advice or tips would be greatly appreciated!