Action "refresh" not working

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?

Use standardTile instead of valueTile.

1 Like

Thanks. Fixed.