Blue 2-1 with HA - immediatly turn lights on but dim slowly when turned off

I assume it would work with the blue switches. It works with the red ones. It works with esphome lights which is where I use it every day.