Can we use the following state.monthName in the label like so?
valueTile("monthEstCost", "device.monthEstCost", width: 2, height: 1, decoration: "flat") {
state "default", label: '${state.monthName}\'s\nEstimated Cost\n\$${currentValue}'
}
Can we use the following state.monthName in the label like so?
valueTile("monthEstCost", "device.monthEstCost", width: 2, height: 1, decoration: "flat") {
state "default", label: '${state.monthName}\'s\nEstimated Cost\n\$${currentValue}'
}
Yes, does it not work?
Worst case is you might need to update currentValue with the whole string you want during any parsing event.
Yea it wasn’t working but I will try adding to currentValue.
You have to add text to currentvalue itself. It does not seem to work.
Now a side effect (I believe) is that in Android, if “currentvalue” is a string, and colors are used, the device will fail.
I’m trying to work around this right now, and looking for ideas.