I found a fix to the gcp inverter limit command being automatically reset by SMA. I posted it in the thread @swante suggested where the shell commands are being used: Feature to set power limit of SMA STP inverter from Home Assistant - #22 by GH-R2D3