Hi. I am trying to program a valueTile to be able to show different labels when it has different values. I have been able to do this with the background color, but not the labels. How can I do this?
valueTile("battery", "device.battery", inactiveLabel:false, decoration:"flat", width:2, height:2) {
state "battery", defaultState: true,
label:[
[value: "01", label: "Batt: Bad"],
[value: "00", label: "Batt: Good"]
],
backgroundColors: [
[value: "01", color: "#bc2323"],
[value: "00", color: "#44b621"]
]
}