How to edit group/area/label members from an automation?

Hello!
TLDR: Is it possible to edit the members of a light group from an automation?

I want to use different sets of lights depending on the time of day… and it would be really useful if I could have a light group enabled lights that would change its members every morning/evening.

This would make my automations much simpler. Just turning on enabled lights without checking the time of day every time I press the button.
The action turn on light can target light groups, areas or labels, but I can’t figure out how to update the members of any of those from an automation.

I found the old-style groups. They can be updated from an automation, but I can’t set their brightness from an automation because the entity is not a light.

Do you have any suggestions?

AFAIK not possible.

If for some reson you have many automations that all would depend on exactly the same “temporal light groups”, perhaps make a script that checks the time and returns whichever lights is correct, then call this script from your automations?

Thanks for the reply. I also asked this on Discord and fellow community member NSX let me know about the Spook integration. Among many small improvements, it adds label management, which allows dynamic labels. This worked for me in case anyone else stumbles upon this thread.