device (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.

Note that there are multiple machine config examples here. They’re just included to show different options. You wouldn’t actually use more than one.

#config_version=5

coils:
    c_hold:
        number:
        default_hold_power: 1.0
    c_power:
        number:
        default_pulse_ms: 20

switches:
    s_eos:
        number:

dual_wound_coils:
    c_test:
        hold_coil: c_hold
        main_coil: c_power
    c_test_eos:
        hold_coil: c_hold
        main_coil: c_power
        eos_switch: s_eos
#config_version=5

lights:
    light_01:
        number: 0
        label: Test 0
        subtype: matrix
        debug: True
    light_02:
        number: 1
        label: Test 1
        subtype: matrix
        debug: True
    gi_01:
        number: 1
        subtype: gi
        debug: True
    gi_02:
        number: 2
        subtype: gi
        debug: True
    flasher_01:
        number: flasher_01
        platform: drivers
        debug: True
    flasher_02:
        number: flasher_02
        platform: drivers
        debug: True
    flasher_03:
        number: flasher_03
        platform: drivers
        debug: True

coils:
    coil_01:
        number: 1
        default_pulse_ms: 30
        allow_enable: True
    coil_02:
        number: 2
        default_pulse_ms: 60
    coil_03:
        number: 3
    flasher_01:
        number: 4
        label: Test flasher
        default_pulse_ms: 40
        max_hold_power: 1.0
    flasher_02:
        number: 5
        label: Test flasher 2
        default_pulse_ms: 100
        max_hold_power: 1.0
    flasher_03:
        number: 6
        max_hold_power: 1.0

show_player:
   flash2:
      flash_show:
         action: play
         show_tokens:
            flashers: flasher_01, flasher_02

shows:
   flash_show:
     - flashers:
         (flashers): 100ms
       events: test
       duration: 1s

flasher_player:
   flash:
      flasher_01: 100ms