When triggering custom effect from while lights are off, they first flash the last state

Please try the following:

Set the “Advanced Settings” first and only after that add your frames.

I have these ones checked and the rest unchecked:

  • Set initial brightness → set the slider all the way to the left

  • I want to set brightness per frame. This prevents brightness adjustment while effect is running.

  • Toggle light states in frames

This article explains the individual settings quite well:

Good luck.