you absolutely
do not want to put a smart bulb into a fixture controlled by any kind of dimmer (smart or dumb). Reducing voltage to electronics like that can cause issues once you get below a certain point. It will depend on the bulb though, some should be better at handling it. And depending on the dimmer you have, they can dirty up the power even when they're at full, and cause problems with electronics.
If you've got a smart bulb,
you also do not want the power controlled by a smart switch. If you turn off the switch, the bulb will drop off the network. So you won't be able to turn the bulb on remotely, unless you turn the switch on first. And depending on the bulbs, having missing ones can affect the stability of that entire system. as it will keep trying to send commands to that light, and not getting a response, so it resends, and slows down traffic going to lights that are still there.
You also don't want "dumb" switches controlling smart bulbs , if people hit the wall switch (like they've learned to do their entire life), then you've got no remote control of the bulb. Some like hue let you set what happens when they get power back though, so they'll work like dumb bulbs.
if you've got "dumb" LED lights you'll need to look the specs if you're putting them on a smart switch, some can handle dimming, others can't. And even if they say they can dim, they might not dim well. So you'll need to get a switch/relay (only on or off) for those instead of a dimmer. I did find some dumb bulbs that dimmed OK, they even got warmer as the power went lower.
I've got a mix of smart bulbs and switches. The smart bulbs (Hue) are mostly in lamps, so just plugged into an outlet. The one exception is the light on a ceiling fan. I wired around that switch but just left the switch in the wall box, so it doesn't do anything anymore, It's still fairly legal since there is a pull chain on the fixture itself to kill power to the socket. and just use homekit to control them
I've got "dimmable" dumb LEDs in the bathroom, some wall sconces and a LED "can" light. even though their specs say they can dim, they don't dim well. at 1% on the switch, they pop on to about 40%, and the lights are close to full by the time you get the dimmer to 50% or so. they flicker when dimmed, and because they are a cooler color temperature, the light coming off them looks really horrible at lower levels.
Hue has a device that goes behind your regular wall switch, Once it's wired in it sends power all the time to the lamp, but it uses your old wall switch for control. And you can configure it so that turning the switch on, turns on the entire room, even if those lamps are just plugged into an outlet
They also have a
controller that looks like a switch, but it just sticks to the wall with adhesive, no wiring required.
there are also homekit buttons, that give you control of lights without having to grab your phone, or yell at siri. So you can "Hotwire" your switch, and put the button beside it.