The Ubiquitous Power Internet of Things (UPIoT) is a deep integration of the interconnected power network and communication network, enabling full perception of the system status and business operations for power production, transmission, and consumption. To address the challenges of real-time perception, rapid response, and privacy protection, UPIoT can benefit from the use of edge computing technology. Edge computing is a new and innovative computing architecture that enables quick and efficient processing of data close to the source, bypassing network latency and bandwidth issues. By shifting computing power to the edge of the network, edge computing reduces the strain on cloud computing centers and decreases input response time for users. However, access latency can still be a bottleneck, which may overshadow the benefits of edge computing, particularly for data-intensive services. While edge computing offers promising solutions for the IoT network, there are still some issues to address, such as security, incomplete data, and investment and maintenance costs. In this paper, researcher conducts a comprehensive survey of edge computing and how edge device placement can improve performance in IoT networks. The paper includes a comparative use case of smart agriculture edge computing implementations and discusses the various challenges faced in implementing edge computing in the UPIoT context. The results also aim to inspire new edge-based IoT security designs by providing a complete review of IoT security solutions at the edge layer in UPIoT.