Had a quick look. I suspect this might _not_ be a constant shift, but a multiplicative factor.
VASP defines RYTOEV=13.605826_q, which is significantly different from the value used by
i-PI, (0.036749326 eV/Ha, corresponding to ry2ev=13.605692). Given that energies have a
large constant value with small fluctuations around them, this will probably show up as an
effective offset, for a single system.
I don't know where the VASP value comes from, i-PI is close enough to the NIST value
Could you check if this is indeed the source of discrepancy? If that's the case, we could
change the patch to use the i-PI conversion factor rather than VASP - this would not solve
the strange value used in the VASP codebase, but at least give consistent values.
Best,
Michele