Connecting modern dimmer to two-wire junction box
Your dimmer is not compatible with your wiring
Your house appears to be wired in late-stage knob-and-tube, with only the hot wires (incoming and outgoing) present in the box and the neutral bypassing it.  As a result, you do not have a neutral in the box, which is what your dimmers require to power all the &quot;smart&quot; electronics inside them.  You'll either need to use a &quot;smart&quot; dimmer that trickles power through the load, such as the no-neutral version of the Lutron Caseta (and perhaps LUT-MLCs in the fixtures to keep your lightbulbs from glowing or flickering due to that trickle of power), or have the neutral rerouted into the box, which'll require an electrician who's familiar with knob-and-tube stuff.