Newbie asking for help

Hi,
I am new to HA and Node-Red. I have created a simple automation for photovoltaics. It involves switching on the pool pump and switching panels (I have more power from the panels than the maximum MPPT input... we don't get much sunshine here).
I also want to be able to set the limits that control the automation. I have created a "number" node in NR.
I don't know the following:

  • how to connect the limit setting, for example for SOC battery (%) to the "trigger-state" node, where it is a condition for further action.
  • how to set the range for the "number" node, displayed in HA as a slider (e.g., 500 to 1800 W)
    I suspect that this can only be done with functions, which I don't understand at all.
    I would be grateful for any advice, preferably written code that will make this possible.
    I am attaching a few scans.
    Thank you very much.
    Arny.

In the condition section you can choose between the entity that is defined in the entities section of the node. To use a different entity choose entity id and enter the entity you want for the condition.

To create a new number entity, click the + sign to create a new config.

The next page that pops up and at the bottom you will see the min/max/step settings.