Segmented Switch

When I use a segmented switch with 3 options, selecting the 3th option results in highlighting the 2nd option when I restart the (mobile) dashboard. The result of that option is stored well in the program, it’s just a dashboard problem. Selecting the 1st or 2nd option of the switch works well. Am I doing something wrong?

In Blynk Legacy the switch index positions always started from 1, so a three position witch would result in indexes of 1, 2 & 3

In Blynk IoT the initial index positions are dictated by the minimum value of the datastream you are using, so if you define a virtual datastream with a minimum of 0 and a maximum of 2 the segmented switch indexes will be 0, 1 and 2. And, if you use the datastream default min/max value of 0 and 1 and define a 3 position segmented switch then you’re obviously going to have problems too.


Hello Pete,
Thank you for your answer.
I changed the datasteam values to 0-2 and now it works well.

1 Like