The solar lamp of the gatepost headlight can be disconnected from the power supply. Solar lamps have batteries, which can store electricity during the day and illuminate at night. The battery can supply power for a long time, and it is generally not necessary to install mains electricity.
Solar lamp is battery-powered and belongs to low-voltage power supply. There is no need to connect the mains supply or install the grounding wire.