timed_switches (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

#config_version=5

modes:
 - mode1

switches:
  switch1:
    number:
  switch2:
    number:
  switch3:
    number:
  switch4:
    number:
    tags: left_flipper
  switch5:
    number:
    tags: right_flipper

timed_switches:
  group1:
    switches: switch1, switch2
    time: 2s
  another_one:
    switches: switch3
    time: 2000ms
    state: inactive
    events_when_active: active_event
    events_when_released: release_event

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

#config_version=5
mode:
  game_mode: False

timed_switches:
  mode_switch:
    switches: switch2, switch3
    time: 2s