My segmented switch not working after a set my project to blynk 2.0

hey guys, i´m in doubt.

i tried to set my segmented swicth to work in the new blynk 2.0 but may be the data type is wrong.

it was works fine in the old version.
i tried to set the doble data type too but did not work.


the code is:


BLYNK_WRITE(V6){
 switchState = param.asInt();
 getLUX();  
}
void getLUX() { // Lê a condiçao da selecao de 4 opcoes no app  
 Serial.print("verificar horas : ");
 Serial.print(horas);
 Serial.println();
 Serial.print("verificar horas 1: ");
 Serial.print(someInt);
 Serial.println();
 if (switchState == 1){ // select working hours 
    
    if(someInt == 6 && someInt<= 18 ){// working hours 6 am to 6 pm; 12 hours cycle
       valor = LOW;
       digitalWrite(rele1, valor); 
    }
    else{
       valor = HIGH;
       digitalWrite(rele1, valor);
    }
 }
      
 if (switchState == 2){  // select working hours
         
    if(someInt == 5 && someInt <= 23 ){//working hours 5 am to 11 pm; 18 hours cycle
       valor = LOW;
       digitalWrite(rele1, valor);        
    }
    else{
       valor = HIGH;
       digitalWrite(rele1, valor);
    }
  }
   
 if (switchState == 3){ // turn off the light
    
    valor = HIGH;
    digitalWrite(rele1, valor);
 }
 
 if (switchState == 4){ // turn on the light
    
    valor = LOW;
    digitalWrite(rele1, valor);
  }
 Serial.print("Verificar estado do Rele da luz (0 Ligada; 1 Desligada) : ");
 Serial.print(valor);
 Serial.println();
 
}

Hello. Please show your widget settings. Integer data type is correct.

are the same as a old version.

@steniomo all seems correct. So you don’t get the value from the app or you get the wrong value?

@BlynkAndroidDev @Eugene do you see something?

i don’t get the value from the app

it works now. i have change the data type min and max to 0 to 3. even being set to 1 to 4 the app was sending 0 to 3, so i set the code and the app.