Metal halide perovskite materials present a wide array of opportunities for the development of high-performance optoelectronic devices, owing to their outstanding photoelectric properties. Compared with the lead-containing perovskites, stable and non-toxic organic-inorganic hybrid perovskites exhibit enhanced potential for future commercial applications. In this work, we developed a self-powered UV photodetector based on 2D Dion−Jacobson (DJ) phase lead-free double perovskite HAAg0.5Bi0.5Br4 (HA2+ = histammonium) perovskite with an on-off ratio up to 2.66 × 106, excellent specific detectivity of 6 × 1012 Jones, and response speed of 1.32 ms/118.4 μs. The light intensity related pyro-phototronic effect on 2D perovskite is thoroughly investigated. Temperature and light detection are realized through multi-energy coupling, which greatly improves the detection performance. Coupled pyro-phototronic current is calculated nearly 75 folds higher than that from the photoelectronic merely. As-prepared photodetector film shows excellent stability in normal environment, maintaining a value of 90 % to the initial performance after 500 cycles and 90 days. This work provides a new self-powered, stable and non-toxic candidate for the future UV photodetectors.