Sure, just don’t connect it to the same circuit branch. Treat the inline dimmer like a smart bulb, let it control how much power it draws.
Then have a separate switch that does not control the load. That switch sends a message to the hub, the hub sends a message to the inline device.
You didn’t say which country you are in, and the device selection does vary, but you should have several choices. (The topic title is a clickable link) See the following FAQ: