mirror of
https://github.com/esphome/esphome.git
synced 2026-11-15 01:25:57 +00:00
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
25 lines
414 B
YAML
25 lines
414 B
YAML
substitutions:
|
|
binary_sensor_pin: GPIO2
|
|
output_pin: GPIO3
|
|
switch_pin: GPIO4
|
|
switch_pin_2: GPIO5
|
|
switch_pin_3: GPIO6
|
|
switch_pin_4: GPIO7
|
|
|
|
packages:
|
|
gpio: !include common.yaml
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO8
|
|
hold_state: true
|
|
id: gpio_binary_sensor_esp32
|
|
|
|
output:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO9
|
|
hold_state: true
|
|
id: gpio_output_esp32
|