Blink light and stop by sending command to Serial

if you reset cmnd (cmnd = "";) immediately after setColor(), i doubt it will ever contain a complete string. but it does need to be reset but only if a valid word, and what about errors.

suggest Serial.readBytesUntil() and reading a complete line terminated with a linefeed.