Seems like after setting a Widget (or PIN really) LABEL thru HTTP API, you cant reset the LABEL to whatever the Template says.
The following command:
´´´ https://blynk.cloud/external/api/update/property?
token=r1isS0…rm&pin=v10&label=Temperature
´´´
is documented to set the LABEL of a WIDGET to Temperature. But it really sets the LABEL of ALL widgets using V10. Fair enough.
But I cant find any way to restore or reset the Label value. And this is the bug.
I have several widgets using V10. Some labeled “Temp”, some “Temperature” and some “Temperature (AVG)”.
Problem is. Now when i have used the command ALL widgets use the same LABEL - i don’t want that.
But there seems to be no way to reset to the values defined in the Template. I am now stuck with a LABEL text i have defined via HTTP API, but Templates have different texts. I have tried to edit and save Templates, tried to logout-login, created new widgets from scratch, but nothing restores my LABEL text to what the Template says.
There seems to be no way to restore a LABEL text again after using the HTTP API command.
The LABEL text once set with HTTP API command is now always used and cannot be changed by Template edits … (And it cannot be seen in any edit views etc).
You can “delete device data”. Open required device on web or mobile find “Actions menu” and click on “Erase Data”.
But yeah, setProperty sets the datastream value, not the widget value. So every widget that uses that datastream will inherit the value from the datastream property.
Yes. The same issue. I think we’ll extend the “Erase data” dialog to support multiple options for erasing. For now, I think this should fix both issues.