Controlling the light source externally from a data file

Hey everyone, I’m working on a project where I need to control a light source’s intensity in real-time using RGB values. The goal is to dynamically adjust the light’s color and brightness based on incoming RGB data.
Unfortunately, I’ve hit a roadblock and can’t seem to find the right approach. Can anyone of you provide some insights or pointers on how I can achieve this within the Omniverse environment?