Question about "refresh" on device handler


(Eric) #1

What is the difference between hitting the refresh button on your devices tiles or “pulling down” to refresh?

I am asking because on iOS pulling down implies a refresh but my device doesn’t refresh unless I hit the refresh button.

(Tim Slagle) #2

Depends on the device type. If it’s written with a implicit refreh method it should refresh the device. If not the client won’t know what to do.

(Eric) #3

I have a refresh method it is declared as…

def refresh() {


It doesn’t get called by the pull down to refresh but it does get called by my refresh standardTile

standardTile(“refresh”, “device.switch”, inactiveLabel: false, decoration: “flat”, height: 2, width: 2) {
state “default”, label:“Refresh”, action:“refresh.refresh”, icon: “st.secondary.refresh”

What I am trying to do is make it so the status of the device updates when you go into the device detailed view. That isn’t working, so I’d at least like to be able to pull down to refresh.

Is there a way to make it refresh when you open the detailed view?