Update switch stage in dashboard

Hi I try to use tasmota and MQTT on NodeRed Dashboard

but I need to update switch stage when I pressed Btn on hardware

this is what Im try but yes this is infinity loop LOL Please Help

thank you :smiley:

Did you uncheck the checkbox ?

omg that work

Thank You!