grid-tie inverters must accurately match the voltage and phase of the grid sine wave AC waveform. There are also Grid-tied battery-backup inverters.