Fusion solar - set charge mode Luna

Hi There,
I am using the fusion solar integration to connect with my Huawei inverter and the Luna2000 battery. So far everything runs fine. Now I want to change the charge/discharge mode with HA.
I could easily switch the modes through the Fusion App on my phone, but ho how to implent this in HA. Sensor is: sensor.battery_1_charge_discharge_mode where I have to switch between 1 and 4. Any help on this??

Tx - JJ