Hue Scenes Intermitently not selecting correctly

Hello,
For a bit of context, I use HA to do all the automations for my HUE lights. The reason for this is that I set the light colours based on Day, Evening, or Night. So when I press a Hue button in the house, HA works out what time of day we are in (which is decided by a combo of fixed times and sunset) and then displays the correct colour scheme in that room.

This works great apart from one 'room', the outside front group...

Now this room has an additional complication, which I made.

Trigger conditions are Movement from a Hue Sensor (Movement + light levels & 2 min of no movement) and sunset/sunrise.

The sensor will activate a scene based on the above day/night/evening protocol. This bit works perfectly.

Outside of that, during the day, the lights are off, but overnight, they pick a scene based on the time of year/events happening... e.g., Spring/Summer/Autumn/Winter + Xmas + Halloween, etc. This bit can be intermittent...

So... at sunset, HA triggers the automation
This goes "no movement, it's nighttime, so select a colour."
It then correctly picks the option of "Summer" and asks Hue to change to "FW - Summer", Dynamics on, etc.
But what actually gets selected in "FW - Night, no dynamics." This is consistent; it will always pick this.
If I then walk in front of the sensor, it will again correctly trigger to "FW - Night".
However, sometimes when the 2min clear goes through, it will select the "FW - Summer, with dynamics on," which is correct, but this will get used; it will also sometimes show "FW - Night, No Dynamics."

I have been running this for 7-8 months, and this behaviour has been consistent. The only difference is I have now passed Winter, Spring, Summer, Easter, Xmas, & New Year's; all have had this issue.

Any thoughts on what might be happening here?
(If I need to send some data to help diagnose, happy to; please include instructions on how to get that data, please)

Thanks In Advanced.

Look at your automation traces.

Hello,
So, the traces show things are being requested properly. It's just not translating to the correct lighting scene being selected.

Thanks

And it is not like there is a double trigger happening?
look at the timestamps on the traces.
It might be that one is triggered and then next is triggered almost at the same time?

If there is no double trigger, then test it in the Hue app and see if that acts differently.

Hello,
Sorry this took me a few days. This is the last trace from a few nights ago. No sign of a double trace, as you can see below. Also, as you can see, the night scene was selected in the Hue App.

I did try to activate the summer scene via Home Assistant manually, and it worked fine. Showed up in the Hue App, and the lights were correctly coloured.
And selecting the scene in the Hue app also works fine.



Thanks

Well, then the steps in the trace should also tell you what is sent to Hue and if that is correct, then the error might be in the Hue part.