I do not know what it means to "perform green".
Green is a bodily function.
Your confusion comes from clinging to the naive (but understandable) notion that color is a property of light.
But as we saw in our earlier thought experiment, it cannot be.
If light from the sky hits the eyes of the normal person, the dog, the person with tritanopia, the person who ate the mushroom, and the sensor for your floodlights, we have five different color responses -- blue, grey, green, yellow, and none.
So is the light blue, grey, green, yellow, or transparent?
You see, it makes no sense to say that one -- and only one -- particular RESPONSE to light is somehow a property of the light, especially since the light which caused the response is now too far away to have any communication with the body where the response is occurring.
The question is: What causes the blue, green, yellow, and gray, and why is no such thing caused inside the floodlight sensor?
In the case of the animals, the colors are bodily functions your body performs, like digestion or pain. Your body performs green, and all other colors, and everything else in your conscious palette.
You say that you can get a machine to store a value (which is itself an abstraction, but we'll skip that problem for now) as a result of being hit by certain wavelengths of light.
But then you said that this was somehow an example of consciousness.
But it's not. That's not consciousness. You might as well say "I got a machine to store a value when I put food into it" and call it digestion.
But storing a value, digestion, and consciousness are all very different things.
Consciousness = phenomenology.
To make a machine conscious, you have to construct it so that it generates this hologram-like thing we call consciousness, or phenomenology, or qualia, even the spirit or soul or self or person or mind at times.
Without that, you have a non-conscious machine, no matter how intelligent it is.