Is it possible to change a tiles state without changing its value ? Or are those just synonyms?
tileAttribute("device.temperature", key: "PRIMARY_CONTROL") {
attributeState("off", label:'${currentValue}', unit:"dF", action:"heat", nextState:"turningOn", defaultState: true)
attributeState("on", label:'${currentValue}', unit:"dF", action:"off", backgroundColor:"#00A0DC", nextState:"turningOff")
attributeState("turningOn", label:'${currentValue}', unit:"dF", action:"off", backgroundColor:"#00A0DC", nextState:"turningOff")
attributeState("turningOff", label:'${currentValue}', unit:"dF", action:"heat", nextState:"turningOn")
}
I have a thermostat device handler that I want to be able to turn off/on, but I want it to always display the current temperature. So I’m using states to change the color in order to indicate off/on.
Having “nextState” works fine for changing the color. however the state doesn’t transition between the “device list” view, and the actual “device” view