Using temperature information to throttle Orion XS charging ampere?

I have a system where to simplify there is: a Cerbo GX (mk2) and a Oxion XS (12/12 50A). Can I via any interface get the XS to throttle the charging current based of temperature sensor? Mentioning the GX since this is probably the device there would be able to do this. GX is connected to the XS via a ve.direct cable.

You could do something with Node Red. I have posted some flows adjusting DVCC based on voltage. You could use the logic and some of the code to adjust the charge current based on the temperature. If you would like to do that let me know. I dont have an Orion XS but if its the only charge source you can use DVCC or you might be able to adjust the charge current directly with the XS node.

If you have pointers to where I would start it would be great. I am a programmer doing things from embedded C to higher level Python/C#. So I don’t mind a challange. But would be nice to know where to start from or if I should just lookup general tutorials.

Have a look at the functions I have here. The first one scales the input, then outputs the current based on voltage. All you need to do is set the temperature range you want to start reducing the current inside the function. The second function filters for a change, so the values are not constantly written.

Install Venus OS large and enable Node Red.

Throttling current is not simple. Relays are either on or off, with no in between.