Source for BYD Atto 3 battery state of charge

Completely untested, but you could try

Just change the MY_VEHICLE variable to be tang and it should parse SOC accordingly. It’s a different formula (according to the above post) so needs to be parsed differently.