Cerbo GX - Change AC Pos dynamically

Hi,

is it possible to change the AC pos of Fronius devices dynamically with node red or a custom service? I have a setup where i can change the inverters position and would like to switch them between AC IN and AC OUT based on yield and consumption…