Hi everyone!
Here I'm again with a coding question ...
I've read here that it is possible to define a different icon to be displayed at a Dashboard tile based on different state values of a device's attribute value.
This is what I've defined:
tiles { standardTile ("device.label", "device.lock", inactiveLabel: false, width: 3, height: 2) { state "locked", label: "Locked", action:"unlock", icon: "st.doors.garage.garage-open", backgroundcolor: "#00ff00" //, nextState: "unlocking" state "unlocking", label: "Unlocking", icon: "st.doors.garage.garage-opening", backgroundcolor: "#0000ff" //, nextState: "unlocked" state "unlocked", label: "Unlocked", action:"lock", icon: "st.doors.garage.garage-closed", backgroundcolor: "#ff0000" //, nextState: "locking" state "locking", label: "Locking", icon: "st.doors.garage.garage-closing", backgroundcolor: "#0000ff" //, nextState: "locked" } }
However, it does not work as expected.
I have a video of what happens with the tile stored at my GitHub: tile transition video - m4v format. NOTE: the color changing was defined at the tile template - otherwise it does not work at all.
Can someone tell me if this feature works only with ST or with HE too and, if it is the case, what am I doing wrong?
Thanks in advance for any help !
Health for everybody ...
Marco