templates: # defining templates to be used later on
  - &con_i2c
    pinlabels: [GND, +5V, SCL, SDA]
  - &wire_i2c
    category: bundle
    gauge: 0.14 mm2
    colors: [BK, RD, YE, GN]
  - &con_ds #DS1820
    pins: [GND,+3.3V,Signal]
  - &wire_ds
    category: bundle
    gauge: 0.14 mm2
    colors: [BK, RD, YE]
  - &ds_f
    type: 3 point   
    subtype: female
  - &con_header
    pins: [GND,+3.3V,Signal]   
  - &wire
    shield: false
    show_equiv: false
    show_name: true
    show_wirecount: true
    show_wirenumbers: true

connectors:
  DS1820_Dak:  
    <<: *ds_f # copying items from the template
    <<: *con_ds # copying items from the template   
  DS1820_Bad:  
    <<: *ds_f # copying items from the template
    <<: *con_ds # copying items from the template
  DS1820_Aanvoer:  
    <<: *ds_f # copying items from the template
    <<: *con_ds # copying items from the template
  DS1820_Retour:  
    <<: *ds_f # copying items from the template
    <<: *con_ds # copying items from the template        
  Encoder:  
    type: 4 point   
    subtype: female
    pins: [GND, pinA, pinB, Switch]   
  DompelPomp:
    type: 2 point   
    subtype: female
    pins: [GND, +12V]   
  Relay:
#    type: 3 point   
    subtype: female
    pins: [GND, +5V,+12V, Signal, Switch1]       
  PSU:
      pins: [fase, nul, aarde, GND, +5V, +12V, DC+]    
 #binnenkomst 230
  230Entree: &230
      pinlabels: [fase,nul, aarde]
      pincolors: [BN,BU,GNYE]    
      image:
        src: images/schukkoStekker230v.jpeg
        width: 75         
  GPIO4: #DS1820
    <<: *con_header
    <<: *con_ds
  GPIO8: #relay
    <<: *con_header
    <<: *con_ds
  ESP32:
    pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
    pinlabels: [GPIO00, GPIO01, GPIO02, GPIO03, GPIO04, +3.3V, GND, +5V, 
                GPIO05, GPIO06, GPIO07, GPIO08, GPIO09, GPIO10, SCL, SDA ]
  ESP32Expansion:
    #pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
    pinlabels: [GPIO00, GPIO01, GPIO02, GPIO03, GPIO04, +3.3V, GND, +5V, 
                    GPIO05, GPIO06, GPIO07, GPIO08, GPIO09, GPIO10, SCL, SDA ]

cables:
  W2:
    <<: *wire_i2c
    <<: *wire
    length: 0.4
    show_equiv: true
  DSw:    
    <<: *wire
    category: bundle
    gauge: 0.14 mm2
    length: 0.3
    wirelabels: [GND, +3.3V, Signal]
    colors: [BK, RD, YE]    
  Relayw:    
    <<: *wire
    category: bundle
    gauge: 0.14 mm2
    length: 0.3
    wirelabels: [GND, Signal]
    colors: [BK, YE]        
  RelayPower:
    <<: *wire
    category: bundle
    gauge: 0.14 mm2
    length: 0.3
    wirelabels: [GND, +5V, +12V]
    colors: [BK, RD, GN]        
  DompelPompw:
    <<: *wire
    length: 22
    gauge: 1.5
    wirelabels: [GND, +12V]    
    shield: false
    colors: [BK, BK]
  230v:
    <<: *wire
    wirelabels: [fase,nul, aarde]
    colors: [BN,BU, GNYE]
  dcPower:
    <<: *wire
    category: bundle

    wirelabels: [GND, +5V]
    colors: [BK, RD]
    
  EncoderW:
    <<: *wire
    category: bundle
    gauge: 0.14 mm2
    length: 0.3
    colors: [BN,BU, GNYE, RD]
#    wirelabels: [GND, pinA, PinB, ]

tweak:
  override:
    graph:
      ranksep: "0.5"  # Reduce the horizontal spacing (default 2)
    wireTweak: &wireTweak
     # shape: none  # Hide the surrounding frame
      fontsize: "12"  # Reduce the space needed for text
     # fontcolor: white  # Same as background to hide the text

    230v:  
      <<: *wireTweak 
    dcPower:  
      <<: *wireTweak       
    DSw:  
      <<: *wireTweak  