Carousel Tiles / Actions


(Tony - SmartThings Unpublished Contributor ) #1

Can a carousel tile initiate actions? Meaning like a standard tile:

standardTile(“switch”, “device.switch”, width: 1, height: 1, canChangeIcon: true, canChangeBackground: true) {
state “on”, label:’${name}’, action:“switch.off”, icon:“st.lights.philips.hue-single”, backgroundColor: "#79b821"
state “off”, label:’${name}’, action:“switch.on”, icon:“st.lights.philips.hue-single”, backgroundColor: “#ffffff
}

More broadly, are there any tiles other than a standard tile that can initiate an action?


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

If so, then it’s not documented; so “no?”… Only standardTiles and controlTiles (though, what type of tiles are the up and down arrows that folks have used for implementing thermostats … let me look up some sample code: Ah … just standardTiles with custom icons and background…).

https://github.com/twack/smartthings-devices/blob/master/Better-Thermostat.device.groovy

SmartThings Docs:
docs.smartthings.com/en/latest/device-type-developers-guide/tiles-metadata.html#tile-definitions


(Tony - SmartThings Unpublished Contributor ) #3

Thanks Terry. That’s what I thought.

Its too bad – I think a carouselTile would be a great way to display a series of individual lights / switches (using a picture of each light / switch).

I was hoping to run a specific action by clicking on the picture shown.