Changing Change GiveEnergy battery controller running on ESP32 using GE API to using HA/MQTT

I have programmed an ESP32 to control my GivEnergy battery using their API and would like to change this to running locally. Using an example program from the arduino IDE to test reading/writing MQTT I can read and write data to HA /MQTT but cannot change any settings on the inverter. I can read the SOC and would like to update charge slot start and end times, the the charge to level and enable/disable the charge slot. I have tried many different topics/payloads suggested on the internet but none have worked. Any suggestions would be appreciated.