Light on_effect hook

Hi,

The doc doesn’t mention it so I don’t have much hope, but is there a way to have an on_effect hook in an ESPHome light, like for a on_turn_on for example ?

I’m trying to find a work around this bug and I was thinking I could try to make a hook to turn the white channel down when an effect is selected, and bring it back up when ‘None’ is selected.
My plan B would be to create an input selector in HA instead of using the effect directly, and go through an automation to do that before the effect is actually selected but that’s not very elegant.

Thanks