Like you just did. Or use the Flow Exchanger, which can export & import flows directly.
In that same topic you’ll find several example flows on how to control a light without you being left in darkness
.
This one includes a luminance condition of any sensor (while a light does not always have to turn on at daytime), and a check if the light is on or not:
´