Best practice for smart bulbs connected to smart switches and dimmer

Update 3: Toggling the check marks to send Off to the bulbs, but not the dimmer is better, but if the bulbs are turned off at the switch and the switch is re-energized, either manually or with HE, the lights come on, but go back off in about 3 seconds. Toggling the wall dimmer switch, or pressing On in HE brings it back as expected.

Edit: Based on this information, how would I go about creating an automation that when one or more bulbs turn on, and the last state of the dimmer was Off, the bulbs get the On command "a few times" forced?

Edit: Based on that, I came up with a rule that's not perfect, as the lamps go off, but come right back on, but it's serviceable...