binary_sensor:
- platform: gpio
pin: 2
id: gpio_binary_sensor
output:
pin: 3
id: gpio_output
switch:
pin: 4
id: gpio_switch