[Ovmsdev] Porting code from v2 to v3