Even if the BC547 transistor collector were not wired to a pin that is not connected (NC) on the datasheet, the most this obsolete optocoupler would do is turn the triac on or off. No dimming effect will occur without some sort of phase control of the input pulse with respect to the AC power connected between HOT and NEUTRAL
Collector of BC547 should connect to pin 2.(CATHODE) of the LED, with a current-limiting resistor in series between +3.3 V DC supply and pin 1 (ANODE) of the LED. Or Is that what the thick black vertical "wire" in the drawing is supposed to represent?
See attached page from datasheet for application information.