Tiles icons at metadata/tiles

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

It only works with ST. :slight_smile: (If you do want to customize something on Hubitat Dashboard, you'll have to do that via some method on the Dashboard itself.)

@maffpt - you can safely delete the entire tiles {} section of the driver code. Hubitat simply ignores it altogether.

@bertabcd1234 and @ogiewon,

Once more, thank you for your promply response.

I can't say that I'm happy with these news ... it would be so nice if it worked as in ST.

Looking at the bright side, now I can cut some useless code from my drivers - :disappointed:

Thank you !!

Everybody stay healthy!

Marco

1 Like

That tiles section will only work for another 11 days in the ST Classic App. I am pretty sure the tiles section is is ignored by the New ST App as well. :wink:

1 Like

Well, it makes me feel less frustrated ... :wink:

1 Like