Appreciate your help @chrome1000 ! I’ve no experience in coding but I still tried my hands on looking into it. Below I have pasted an extract of the coding where I made the changes to, I’ve no clue what to do where hence I hope this is the right place. The source code of this is : https://github.com/tzapu/SonoffBoilerplate/blob/master/SonoffBoilerplate.ino
BLYNK_WRITE_DEFAULT() {
int pin = request.pin;
int channel = pin / 5;
int action = pin % 5;
int a = param.asInt();
if (a != 0) {
switch(action) {
case 0:
turnOff(channel);
Blynk.virtualWrite(V1, LOW); // Force the Blynk button widget on virtual pin 1 to LOW
break;
case 1:
turnOn(channel);
Blynk.virtualWrite(V1, HIGH); // Force the Blynk button widget on virtual pin 1 to ON
break;
case 2:
toggle(channel);
break;
default:
Serial.print(“unknown action”);
Serial.print(action);
Serial.print(channel);
break;
}
}
}