Lithium battery integrated machine,integrated lithium battery and photovoltaic inverter controller integrated machine,can realize photovoltaic and mains power supply mode,battery or bypass priority can be set,with multiple protections,such as input battery over-voltage protection,under-voltage protection,over-current protection,output under-voltage protection,over-current three-level protection (peak high current,RMS current,peak over-current soft start).