LED Widget data stream disappearing


I am using a virtual LED on the mobile app to set colour according to certain condition.

Data stream type is set as “string” in the web console.

And now in the mobile app, after placing the virtual LED on to the dashboard, the data stream that we setup will not appear. Unless i change the data stream type to integer or double. As soon as i change the type, then mobile app starts showing the data stream. After selecting the data stream, if i go back to the web console and change it back to “string” the led starts to show colours.

I checked it many times and this repeats every time.
I force closed the app and re-opened but still the issue exists. Even logged out and logged in again in the app n web console.

This issue i faced was on IOS.
The os and app are both up to date.


String isn’t a supported datastream type for the LED widget.


Then why does the colour does not change when i set the data stream type to integer or double ? As soon as i change it to”string” it starts to display the correct colour.


Commands are working with Data stream set us integer or double. But I am not able to change the colour with setcolour command.

What am I missing!! :thinking:

You can use

Blynk.setProperty(V0, "color", "#D3435C");

To change the LED widget color

1 Like

I will try this and update.

NOPE !! This is not working for me. I will have settle with on and off commands.

Posting your sketch might help.

  scheduled_state = param.asInt();
  if (scheduled_state == 1) {
    scheduled = 1;
    Blynk.setProperty(V0, "color", "#23C48E"); //GREEN
//    led1.on();
    Serial.println("LED ON");
  } if (scheduled_state == 0) {
    scheduled = 0;
    Blynk.setProperty(V0, "color", "#D3435C"); //RED
//    led1.off();
    Serial.println("LED OFF");

led1.on();and led1.off();commands works.

The LED widget is attached to virtual pin 0, right ?

Yes. I am sure about it.

And the V0 datastream is an integer now?


Yes 100%.

Also the same virtual pin is tied to mobile widget.