Change button text value with api

Is there a way to change a button TEXT (ie what is written in the center) programatically with a python api.

I can change the color and label

The context is that this button is used to control a ressource, which is also controlled by another mean. When using this other lean, I would like to update the button on the Gui accordingly.


Hello @pabou. You can change TEXT in Button widget via Label properties.

Blynk.setProperty(V1, "onLabel", "ON");
Blynk.setProperty(V1, "offLabel", "OFF");

or via HTTP API{your 32 char token}&pin={your vPin}&onLabel=newtext{your 32 char token}&pin={your vPin}&offLabel=newtext

For example:

Please read Button - Blynk Documentation

def set_property(self, pin, prop, *val):
        self._send(MSG_PROPERTY, pin, prop, *val)

Also post about update properties via Python