Node Red Load Control

Hi,

Not familiar with Node Red but have an application for load control monitoring the grid meter and based on hi and lo setpoints to switch a contactor.

Used a JS function for the logic of switching the contactor but for the life of me I am struggling to get the L1, L2 and L3 current values read in the function node. Keep getting “undefined” values.

Any help will be appreciated!

Are you able to provide a sample of your code? Might be simple fix