i2c:
  - id: i2c_pcf8574
    scl: ${scl_pin}
    sda: ${sda_pin}

pcf8574:
  - id: pcf8574_hub
    address: 0x21
    pcf8575: false

binary_sensor:
  - platform: gpio
    id: pcf8574_binary_sensor
    name: PCF Binary Sensor
    pin:
      pcf8574: pcf8574_hub
      number: 1
      mode: INPUT
      inverted: true

output:
  - platform: gpio
    id: pcf8574_output
    pin:
      pcf8574: pcf8574_hub
      number: 0
      mode: OUTPUT
      inverted: false
