Update UI after MQTT action rule

Hello, I have my schlage lock paired to smartthings. I can control it via MQTT with a bridge. I want to update the on/off slider in the UI in case the lock is opened manually or my wife does it from smartthings instead. What I have found is that I get repeated commands send to the lock. I thought doing a postUpdate would only update its state not send a command. I also noticed this problem with my blind beings paired to smartthings and MQTT endless looping the postUpdate information. This is my rule:

rule "Lock State"
when
Item Lock_State received update
then
if(Lock_State.state == “locked”) {
Lock.postUpdate(“ON”)
}
} else {
Lock.postUpdate(“OFF”)
}

end

My goodness i must be blind, just saw the same exact post one down. sorry!