Problem changing grid set point with node red

Hi,

I’m trying to export my PV generation to the grid rather than charge my battery. I’ve tried using DESS, but it sometimes ends up charging my batteries from the grid during peak hours, which I’d like to avoid.

To address this, I created a simple Node-RED flow that checks my current PV generation every 5 seconds and adjusts the grid set point accordingly. While this works initially, I’ve noticed that shortly after the set point is updated to match the PV generation, it changes to 1, even though the set point was never configured to 1 in the first place.

Here is a video showing the issue in action:

Has anyone seen this behavior before? Also, could frequently changing the set point like this potentially cause damage or issues with the system?

Thanks,
Paul