An intelligent connection locking device for a power line of a building machinery device comprises a device rack body (9) and a driving motor (16), wherein the driving motor (16) is fixed in the device rack body (9), a power line insertion channel (50) is arranged in the device rack body (9) and used for a power line (5) to insert, the driving motor (16) is in power linkage with a screw rod (161) extending from the driving motor (16), a driving wedge block (10) is in threaded matching with the screw rod (161), a wedge surface at the right side of the driving wedge block (10) is matched with an inclined surface in a main body (151) of a locking sliding block (15) in a sliding way, and the locking sliding block (15) can slide on a bearing locking sliding block (12) in a left-right way.