Addressing Annoying Wiring with Smart Devices

How I used a Shelly Dimmer 2 as an inline dimmer