Dynamically change device label through smartapp?

Is there a way to change an device label through a smart app or device driver itself? This assumes the device already exists..

device.updateLabel("new name")???

I know for an app it's

..but I've never tried with a driver. Why not just try it and see. Post results here as I'm curious.

1 Like

Is there any official documentation on this type of command?

Yes... but it still needs work. If you ask @chuck.schwer, he will usually fill in the blanks of the documentation fairly quickly for the functions you need.

Looks like there is a setLabel() function you can use, as well as a getLabel(). They both appear to be very straightforward calls.


1 Like