Hi. I have a thread on this which I started about 3 years ago. My preferred way is to enable MQTT server on your CCGX under Settings/Services and to install MQTT add on in HA. You can then access all your Victron data directly in HA as MQTT sensors.
You need to create an automation to keep the CCGX server alive.
A big advantage of this over REST calls is that you’re not dependent on a working internet connection, it’s all local.
Of course we’ll help you out, no strings attached. Just shoot your questions or issues, that’s what these forums are for.
I can’t count the number of times I turned to posts here to figure out things for myself.