I've tried to simplify it as much as possible. The missing trigger is at 06:43
The Sunrise Routine looks silly, but Ive added some double actions with delays to try to create a workaround for the problem.
Rule "Bedroom Lightning"
TRIGGER: Bedroom Presence, TV — any turns *changed*
Stop Repeating Actions
IF (Bedroom Presence is on AND Mode in [Day, Night]) THEN
While (Bedroom Presence is on AND TV is off AND Mode in [Day, Night]) Repeat every 0:15:00 (stoppable)
Color Temperature: His Lamp, Hers Lamp: MainCT -> Level: MainLevel -> Fade: 2
END-REP
While (Bedroom Presence is on AND TV is on AND Mode in [Day, Night]) Repeat every 0:15:00 (stoppable)
IF (Variable MainLevel >= 30) THEN Color Temperature: His Lamp, Hers Lamp: MainCT -> Level: 30 -> Fade: 2
ELSE-IF (Variable MainLevel < 30) THEN Color Temperature: His Lamp, Hers Lamp: MainCT -> Level: MainLevel -> Fade: 2
END-IF
END-REP
ELSE-IF (Bedroom Presence is off OR Mode in [Away, Sleeping]) THEN
Off: His Lamp, Hers Lamp
END-IF
Rule "Sunrise Routine"
TRIGGER: Sunrise Trigger on Hub_I_C4(off) turns on
ACTIONS: Pause Rules: Bedroom Lightning
On: Sunrise Simulation Lamp (Bedroom)
Resume Rules: Bedroom Lightning --> delayed: 0:15:00
Dim: Strepies (Hue Bulb): 1
Dim: Strepies (Hue Bulb): 1
Run Actions: Bedroom Lightning --> delayed: 0:15:00
Run Actions: Bedroom Lightning --> delayed: 0:15:02
Run Actions: Bedroom Lightning --> delayed: 0:15:15
Off: Sunrise Simulation Lamp (Bedroom) --> delayed: 0:15:00
The logs:
06:18:00.055 Event: Paused by 'Sunrise Routine'
06:33:00.514 Event: Resumed by 'Sunrise Routine'
06:33:01.015 Event: Actions run by 'Sunrise Routine'
06:33:01.032 Action: Stop Repeating Actions
06:33:01.069 Action: IF (Bedroom Presence(off) is on(F) AND Mode in [Day, Night](T) [FALSE]) THEN (skipping)
06:33:01.082 Action: While (Bedroom Presence(off) is on(F) AND TV(off) is off(T) AND Mode in [Day, Night](T) [FALSE]) Repeat every 0:15:00 (skipped)
06:33:01.087 Action: Color Temperature: His Lamp, Hers Lamp: MainCT(1935) -> Level: MainLevel(23) -> Fade: 2 (skipped)
06:33:01.089 Action: END-REP (skipped)
06:33:01.101 Action: While (Bedroom Presence(off) is on(F) AND TV(off) is on(F) AND Mode in [Day, Night](T) [FALSE]) Repeat every 0:15:00 (skipped)
06:33:01.109 Action: IF (Variable MainLevel(23) is >= 30(F)) THEN (skipped)
06:33:01.112 Action: Color Temperature: His Lamp, Hers Lamp: MainCT(1935) -> Level: 30 -> Fade: 2 (skipped)
06:33:01.119 Action: ELSE-IF (Variable MainLevel(23) is < 30(T)) THEN (skipped)
06:33:01.176 Action: Color Temperature: His Lamp, Hers Lamp: MainCT(1935) -> Level: MainLevel(23) -> Fade: 2 (skipped)
06:33:01.178 Action: END-IF (skipped)
06:33:01.180 Action: END-REP (skipped)
06:33:01.189 Action: ELSE-IF (Bedroom Presence(off) is off(T) OR Mode in [Away, Sleeping](F) [TRUE]) THEN
06:33:01.192 Action: Off: His Lamp, Hers Lamp
06:33:01.620 Action: END-IF
06:33:03.600 Event: Actions run by 'Sunrise Routine'
06:33:03.616 Action: Stop Repeating Actions
06:33:03.654 Action: IF (Bedroom Presence(off) is on(F) AND Mode in [Day, Night](T) [FALSE]) THEN (skipping)
06:33:03.667 Action: While (...) Repeat every 0:15:00 (skipped)
06:33:03.672 Action: Color Temperature: ... (skipped)
06:33:03.674 Action: END-REP (skipped)
06:33:03.687 Action: While (...) Repeat every 0:15:00 (skipped)
06:33:03.694 Action: IF (Variable MainLevel(23) is >= 30(F)) THEN (skipped)
06:33:03.697 Action: Color Temperature: ... Level: 30 -> Fade: 2 (skipped)
06:33:03.704 Action: ELSE-IF (Variable MainLevel(23) is < 30(T)) THEN (skipped)
06:33:03.707 Action: Color Temperature: ... Level: MainLevel(23) -> Fade: 2 (skipped)
06:33:03.709 Action: END-IF (skipped)
06:33:03.711 Action: END-REP (skipped)
06:33:03.721 Action: ELSE-IF (Bedroom Presence(off) is off(T) OR Mode in [Away, Sleeping](F) [TRUE]) THEN
06:33:03.723 Action: Off: His Lamp, Hers Lamp
06:33:04.151 Action: END-IF
06:33:17.071 Event: Actions run by 'Sunrise Routine'
06:33:17.088 Action: Stop Repeating Actions
06:33:17.126 Action: IF (Bedroom Presence(off) is on(F) AND Mode in [Day, Night](T) [FALSE]) THEN (skipping)
06:33:17.139 Action: While (...) Repeat every 0:15:00 (skipped)
06:33:17.144 Action: Color Temperature: ... (skipped)
06:33:17.146 Action: END-REP (skipped)
06:33:17.160 Action: While (...) Repeat every 0:15:00 (skipped)
06:33:17.168 Action: IF (Variable MainLevel(23) is >= 30(F)) THEN (skipped)
06:33:17.170 Action: Color Temperature: ... Level: 30 -> Fade: 2 (skipped)
06:33:17.177 Action: ELSE-IF (Variable MainLevel(23) is < 30(T)) THEN (skipped)
06:33:17.180 Action: Color Temperature: ... Level: MainLevel(23) -> Fade: 2 (skipped)
06:33:17.183 Action: END-IF (skipped)
06:33:17.184 Action: END-REP (skipped)
06:33:17.194 Action: ELSE-IF (Bedroom Presence(off) is off(T) OR Mode in [Away, Sleeping](F) [TRUE]) THEN
06:33:17.196 Action: Off: His Lamp, Hers Lamp
06:33:17.625 Action: END-IF
06:43:01.406 Event: Bedroom Presence switch on
[— NO TRIGGER HERE!!! —]
06:46:42.876 Event: Bedroom Presence switch off
06:46:42.897 Triggered: Bedroom Presence, TV any turns *changed*
06:46:42.910 Action: Stop Repeating Actions
06:46:43.041 Action: IF (Bedroom Presence(off) is on(F) AND Mode in [Day, Night](T) [FALSE]) THEN (skipping)
06:46:43.058 Action: While (...) Repeat every 0:15:00 (skipped)
06:46:43.063 Action: Color Temperature: ... (skipped)
06:46:43.065 Action: END-REP (skipped)
06:46:43.078 Action: While (...) Repeat every 0:15:00 (skipped)
06:46:43.086 Action: IF (Variable MainLevel(27) is >= 30(F)) THEN (skipped)
06:46:43.088 Action: Color Temperature: ... Level: 30 -> Fade: 2 (skipped)
06:46:43.096 Action: ELSE-IF (Variable MainLevel(27) is < 30(T)) THEN (skipped)
06:46:43.099 Action: Color Temperature: ... Level: MainLevel(27) -> Fade: 2 (skipped)
06:46:43.101 Action: END-IF (skipped)
06:46:43.103 Action: END-REP (skipped)
06:46:43.111 Action: ELSE-IF (Bedroom Presence(off) is off(T) OR Mode in [Away, Sleeping](F) [TRUE]) THEN
06:46:43.114 Action: Off: His Lamp, Hers Lamp
06:46:43.553 Action: END-IF
06:50:43.735 Event: Bedroom Presence switch on
06:50:43.759 Triggered: Bedroom Presence, TV any turns *changed*
06:50:43.868 Action: Stop Repeating Actions
06:50:43.924 Action: IF (Bedroom Presence(on) is on(T) AND Mode in [Day, Night](T) [TRUE]) THEN
06:50:43.950 Action: While (Bedroom Presence(on) is on(T) AND TV(off) is off(T) AND Mode in [Day, Night](T) [TRUE]) Repeat every 0:15:00 (repeating)
06:50:44.088 Action: Repeating Actions While True
06:50:44.118 Action: Color Temperature: His Lamp, Hers Lamp: MainCT(2169) -> Level: MainLevel(29) -> Fade: 2
06:50:44.644 Action: END-REP (waiting for next)