Solar management with raspberry and i2c driver

https://discourse.nodered.org/t/working-with-a-photovoltaics-and-iobroker/88655
In that Post i already talked about what i have and what i need/want.

Currently i have and Rasp 4 with IoBroker,Node-Red, open KNX and an Modbus instance on it. Right now im trying to programm Node-red/open knx in a way that a set of lights goes active or shuts down if i produce (not)/enough power from the PV system. But im struggling with that since node-red is really indepth and i dont know java script, which u obviously need.