Action "refresh" not working


(Simeon Simeonov) #1
capability "Refresh"

	valueTile("tamper", "device.tamper") {
		state "tamper", label:'${currentValue}', action:"refresh.refresh" 
    }

def refresh() {
 sendEvent(name: "tamper", value: "new value", displayed: false)
}

Pressing the tile does nothing - it does not change the value, nor it gives any indication that the tile is clickable.

What am I missing?


(Kevin) #2

Use standardTile instead of valueTile.


(Simeon Simeonov) #3

Thanks. Fixed.