Renewable energy and smart grids represent the future in energy transition of the European Union. Integration of intermittent renewable energy sources that are not dispatchable due to their fluctuating nature and the massive deployment of power electronic inverters requires greater efforts in grid monitoring to maintain resiliency and quality of service. This paper presents a wireless self-powered and edge computing sensor network designed to assets power quality and grid operation in transmission and distribution power lines. Each node comprises three self-powered monitoring devices, with one serving as the master, the concentrator unit, and two smart sensors as slaves, each assigned to a single phase. The magnetic field generated by the current flowing through the power line serves as the energy source for the self-powered device. This study proposes using a magnetic energy harvester (MEH) for energy collection from the power line. A power converter is specified to rectify and manage variable voltage levels provided from MEH. To decouple the harvested energy from consumption, an energy storage system based on a hybrid supercapacitor has been considered. Each line monitoring device allows for real-time measurement through non-intrusive sensors integrated into each device. A Rogowski coil measures alternating current and high-speed current pulses. Then, a capacitive voltage sensor is proposed for detecting voltage zero crossing without a ground reference. Finally, a temperature sensor provides data on the line temperature for dynamic line rating. The sensor outputs are connected to a signal conditioning stage to generate a signal suitable for the analog-to-digital converter. To ensure an accurate and synchronised time stamp, the use of a GPS module transmitting a pulse per second signal or network time protocol is also suggested. A power quality (PQ) library based on IEC 61000-4-30 class A has been developed and integrated into a microcontroller to provide enhance edge computing capabilities. This module offers an additional benefit for on-site power quality and grid analysis in real-time. The power line sensor network provides power quality parameter, including industrial frequency, power factor and current amplitude, harmonics and events (transients, interruptions and overcurrent). In addition, measurement synchronisation and communication topology are introduced. To assess the performance, a laboratory mock-up was assembled. A prototype equipped with the energy harvester, power converter, data acquisition and processing modules has been developed. Subsequently, the PQ library underwent extensive testing in a metrological laboratory to provide a standardized measurement result under relevant conditions. The study successfully evaluated the proposed solution for real-time power line monitoring of power quality measurements. However, further research is required to design and implement the power line smart sensor in a field environment.