Currently, the construction of anti-ambipolar transistors (AATs) is primarily based on asymmetric heterostructures, which are challenging to fabricate. AATs used for photodetection are accompanied by dark currents that prove difficult to suppress, resulting in reduced sensitivity. This work presents light-triggered AATs based on an in-plane lateral WSe 2 homojunction without van der Waals heterostructures. In this device, the WSe 2 channel is partially electrically controlled by the back gate due to the screening effect of the bottom electrode, resulting in a homojunction that is dynamically modulated with gate voltage, exhibiting electrostatically reconfigurable and light-triggered anti-ambipolar behaviors. It exhibits high responsivity (188 A/W) and detectivity (8.94 × 10 14 Jones) under 635 nm illumination with a low power density of 0.23 μW/cm 2 , promising a new approach to low-power, high-performance photodetectors. Moreover, the device demonstrates efficient self-driven photodetection. Furthermore, ternary inverters are realized using monolithic WSe 2 , simplifying the manufacturing of multivalued logic devices.