Add to your loop:
void loop()
{
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
if(vw_get_message(buf, &buflen))
{
digitalWrite(led_pin,HIGH);
Serial.print("Got ");
for(int i=0; i<buflen; i++)
{
Serial.print(char(buf[i]));
Serial.print(' ');
}
Serial.println();
digitalWrite(led_pin,LOW);
}
if (buf[0] == '2'){
// turn on led connected to 2
digitalWrite (2, HIGH);
}
if (buf[0] == '3'){
// turn off led connected to 3
digitalWrite (3, LOW);
}
// etc
}
Pretty easy for single characters coming on.
Expand test to 2 characters if needed; 1st can be on/off command, 2nd can be the 'pin' to turn on off.