Synchronize physical switch and virtual switch light switch

Hi,
Quick question, there are a lot of topics about synchronizing states between different light switches but I like to synchronize states from one device. I have a light switch that reports a state (when controlled through HA) and a state_1 (when controlled with the physical attached switch). How do I synchronize these states so that when the physical switch is pressed the ‘virtual’ switch changes also and hereby correctly reflect the state on a card?

{
    "brightness": 48,
    "linkquality": 108,
    "state": "OFF", <- virtual switch state
    "state_1": "ON", <- physical switch state
    "power_on_behavior": null,
    "switch_type": null
}

Regards,
Peter