How do I create a shader that is partially emissive for a particular colour, but diffuse if it's grey?
You need to plug another texture in the Fac port of the Mix Shader node, it will separate the emission and diffuse shaders, like so: