     temperature = param.asInt();
     Blynk.virtualWrite(V7,temperature);
     if (acState){
-        sendCodesTask();
+        sendCodesTask(acState);
     }
 }
 

    char ledOff[] = "0";
    char *ledState = NULL;

    sendCodesTask();
    acState ^= 1;
    if (acState){
        ledState = ledOn;

{
    fanStrength = param.asInt();
    if (acState){
        sendCodesTask(acState);
    }
}

