esphome:
  name: test
  platform: ESP8266
  board: d1_mini_lite

binary_sensor:
  - platform: gpio
    id: bs_1
    name: "test bs1"
    internal: true
    pin:
      number: D0
  - platform: gpio
    id: bs_2
    name: "test bs2"
    internal: false
    pin:
      number: D1
