Using an Automation to control GivTCP "Enable Discharge"

Hi,
I am worried by the inability of the GivEnergy BMS to control the minimum discharge level of my battery. So I am considering a “belt” to add to the “braces”!
This is my preliminary automation:
image
(please let me know if the YAML code is easier to follow)

My question is this: When the action runs, it not only turns off the discharge but it seems to run through some background script as well? For example “Battery Power Reserve” is set 100% & Mode is changed to “Eco (paused)”.
Not that these setting seem to conflict with my intention. But they are un-commanded by the automation and I wonder what else may be going on?