Negative prices > stop or reduce Solar production

https://enphase.com/en-au/download/setting-pv-power-production-limit-tesla-powerwall-2-tech-brief

I think this can help

The relays need to be connected with [1/5] and [COM]. And also do the settings to program the relay