sn74hc165:
  id: sn74hc165_hub
  clock_pin: ${clock_pin}
  data_pin: ${data_pin}
  load_pin: ${load_pin}
  clock_inhibit_pin: ${clock_inhibit_pin}
  sr_count: 2

binary_sensor:
  - platform: gpio
    id: sn74hc165_pin_0
    pin:
      sn74hc165: sn74hc165_hub
      number: 0
