Triggering flow from another causes infinite loop

I have a flow here that’s like a master flow for when I wake up in the morning. It is triggered by the on button on a Hue light switch. Within it I trigger another flow (“Se thermostats”) that contains logic for setting several thermostats (sub-floor heating and heat pump), based on presence (“home active” tag), time of day and week of the year. I made this as a standalone flow to be able to trigger it from several flows without conditions.

When I run the “Set thermostats” sub flow manually by itself it works flawlessly, but when I run the main flow that’s supposed to trigger it, it just causes an endless loop and the flow is disabled after 60 runs (understandably). It doesn’t matter if I run the main flow from the webapp or by pressing the button on the switch. The result is the same infinite loop.

I cannot for the life of me figure out why this would happen. Is there anything I’m missing?

Main “Awake” flow:

“Set thermostats” sub-flow in first comment (new user).

“Set thermostats” sub-flow

Perhaps the Hue card for activating the scene also triggers the button press event.

What happens if you remove the links to the last Hue card and the volume card (and save the flow). So only triggering the sub flow card. Does it run without looping?