virtual_platform_start_active_switches:

Config file section

Valid in machine config files YES
Valid in mode config files NO

The virtual_platform_start_active_switches: section of your config is where you define all switches which should start as active when running your machine with the virtual or smart_virtual platform (e.g. when running mpf -X).

This is an example:

switches:
  s_ball_switch1:
    number:
  s_ball_switch2:
    number:
  s_ball_switch3:
    number:
# Start with two (virtual) balls
virtual_platform_start_active_switches:
  - s_ball_switch1
  - s_ball_switch2
This example is tested to be valid MPF config. However, it is not integration tested.
switches:
  s_ball_switch1:
    number:
  s_ball_switch2:
    number:
  s_ball_switch3:
    number:
# Start with two (virtual) balls
virtual_platform_start_active_switches:
  - s_ball_switch1
  - s_ball_switch2