Change status of button

I am using some physical buttons to turn on some bulbs but I also use the blynk app button to turn on the same bulb. How can I change the status of the app button with the physical button?

Add details
• Arduino Mega with Ethernet Shield
• Smartphone OS (iOS or Android)
• Blynk server

Look at the Sync Physical Switch example in sketch builder.


Thanks You!