Hello,
I’m trying to make it so the user can enter text in preferences that will be shown on the device tile. I can’t seem to get any preference entry working for a device. This is what I’m doing:
preferences {
input name: "display", type: "text", title: "Display", description: "What do display on the button"
}
And then for the tile definition
tiles {
standardTile("switch", "device.switch", width: 2, height: 2, canChangeIcon: true) {
state "off", label: '${display}', action: "momentary.push", backgroundColor: "#ffffff", nextState: "on"
state "on", label: '${display}', action: "momentary.push", backgroundColor: "#53a7c0"
}
main "switch"
details "switch"
}
When I click on the preferences for hte device, no input is available.
Can anyone point me in the direction of preferences for a device?
Thanks!