Huawei FusionSolar Battery Charge/Discharge

Hi - I have the Huawei FusionSolar integration in place and one of the Battery entities is the Charge Discharge State. Most of the time under normal operation HA reports this as having a value of 6. If I manually force Discharge of battery via the app and observe the entity via HA the value changes to a string value. That seems a bit strange?

But really what I want to know is how to automate this via a timed trigger - eg at 10pm each night switch the battery to Discharge.