tricky to replicate and hard to explain, lets give it a shot:
Terminology:
- ‘overview screen’ is the overview of the devices of the Devices tiles
- ‘detail screen’ is the screen you get when you select one of the devices from the ‘overview screen’.
If I run this:
Blynk.setProperty(targetTType_PIN, "color", color);// 3 OPTION BUTTON WIDGET
Blynk.setProperty(showTargetT_PIN, "color", color);// TARGET T (Value display)
Blynk.setProperty(showTargetT_PIN, "label", label);// TARGET T LABEL as shown in app
Blynk.setProperty(targetTMIN_PIN, "offBackColor", color); // TARGET T - styled button
Blynk.setProperty(targetTMIN_PIN, "onBackColor", color); // TARGET T - styled button
Blynk.setProperty(targetTPLUS_PIN, "offBackColor", color);// TARGET T + styled button
Blynk.setProperty(targetTPLUS_PIN, "onBackColor", color); // TARGET T + styled button
directly from the detailed screen (so hit a button that activates the above) everything works as expected. All the relevant widgets (two styled buttons and one value display widget) change to the appropriate color and the label also changes.
IF however I run this:
for(int i=0; i<7; i++) APIwriteDevicePin(tokenTHM[i], targetTType_PIN, param.asStr());
from somewhere else (outside the devices tiles), which initiates the color change for each connected device (code at the top) then:
- the two styled buttons colors are changed correctly
- the value display widget does NOT change color
- the value display widget label does NOT change
o and one other Device Tile color ‘thing’. I’ve got a 3x3 setup but using 8 devices, which means that one tile is ‘empty’. This ‘empty’ tile changes color when I change the color of one of the widgets which is NOT part of the device tile ??!
When however I change the color back, the device tile does NOT change back?!? Only when I stop and play the app then the color of the tile changes back to gray.
What is tricky on this one is that:
- if I change the color of a widget from outside the device tiles, the ‘empty tile’ does not change color
- if I do the same but from within the device tile (so color update for the same widget) the empty tile DOES change color and
edit: - I think that sometimes ‘after a while’ the color changes when I change the widget from the outside…
edit2: found the ‘sometimes’. If I change it from outside it does NOT change color but as soon as I open a detailed screen and go back (without changing anything) the color changes.