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        
  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: /home/ton/PROJECTEN/zwembad/wireviz/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, +3.3V, Signal]
    colors: [BK, RD, 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]
    
connections:
  -
    - DompelPomp:  [GND,+12V]
    - DompelPompw: [GND,+12V]
    - Relay: [GND,Switch1]
  -
    - DS1820_Dak:  [GND,+3.3V,Signal]
    - DSw: [GND,+3.3V,Signal]
    - GPIO4: [GND,+3.3V,Signal]
  -
    - DS1820_Bad:  [GND,+3.3V,Signal]
    - DSw: [GND,+3.3V,Signal]
    - GPIO4: [GND,+3.3V,Signal]    
  -
    - DS1820_Aanvoer:  [GND,+3.3V,Signal]
    - DSw: [GND,+3.3V,Signal]
    - GPIO4: [GND,+3.3V,Signal]
  -
    - DS1820_Retour:  [GND,+3.3V,Signal]
    - DSw: [GND,+3.3V,Signal]
    - GPIO4: [GND,+3.3V,Signal]          
  -
    - PSU: [GND, +5V]
    - dcPower: [GND, +5V]
    - ESP32Expansion: [GND, +5V]
  -
    - PSU: [GND, +5V, +12V]
    - RelayPower: [GND, +5V, +12V]
    - Relay: [GND,+5V, +12V]       
  -
    - Relay: [GND, Signal]
    - Relayw: [GND,Signal]
    - GPIO8: [GND, Signal]

  -
    - 230Entree:  [fase, nul]
    - 230v:  [fase, nul]
    - PSU: [fase, nul]
  -
    - 230Entree:  [fase, nul, aarde]
    - 230v:  [fase, nul, aarde]
metadata:
  title: Zwembad verwarming installatie
  pn: ZW

  authors:
    Created:
      name: Ton
      date: 2025-06-20
    Approved:
      name: Ton
      date: 2025-06-21

  revisions:
    A:
      name: Ton
      date: 2025-06-22
      changelog: Productie

  template:
    name: din-6771
    sheetsize: A3

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  
