Have you wired everything you can to the rPi and left the VE Smart network running over Bluetooth. This can give erratic results, best to only have one comms network if possible. It works OK for some but not others.
It sounds like your shunt is not wired correctly and you have a charger negative connected directly to the battery negative so the shunt is not counting the charge current coming in to increase the SOC.