Off-grid invertor