Turn on and off flickering led (Blynk)

I use Wemos D1 Mini and Arduino IDE. The code under works and the led flicker as a candle light. But i need help to turn on/off the flickering led from the Blynk app.

Can someone help me with the code?

#define BLYNK_PRINT Serial
    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>

    int powerled = 14;

    char auth[] = "***";
    char ssid[] = "***";
    char pass[] = "***";

    void setup()
      Blynk.begin(auth, ssid, pass);
      pinMode(powerled, OUTPUT);

    void candlelight(){
      if(powerled == HIGH){
        analogWrite(powerled, random(120) + 135);
    if(powerled == LOW){
      analogWrite(powerled, LOW);

    void loop()

How can that work? "powerled" is a pin number which is always 14, it will never be HIGH or LOW.

I don't think i understand.... :frowning:

I think I saw this same post posted on the Blynk forum and it was answered already. The issue is your loop is not clean, you have no BlynkTimer object and int powered = 14 is a major issue.