I think you need to give us a bit more information and post your flow so people can help you.
Also are you talking about a real bulb or a virtual bulb??
PS:
I know nothing about OPCUA - but assume you are checking if an output is between a certain range of values to decide which bulb to illuminate?