Shown with DC to avoid the flicker of simulated 50Hz mains (EveryCircuit doesn't do real-time simulation).
The Shelly is represented by a relay and would be configured to toggle it's relay any time the signal from the two way mains switching changes state. The relay can also be controlled/toggled by the Shelly via it's app, MQTT, REST, etc.
Check out https://shelly.cloud for the devices.