esphome/tests/components/ch422g/common.yaml

28 lines
483 B
YAML
Raw Normal View History

2024-09-02 03:56:35 +02:00
ch422g:
- id: ch422g_hub
binary_sensor:
- platform: gpio
id: ch422g_input
name: CH422G Binary Sensor
pin:
ch422g: ch422g_hub
number: 1
mode: INPUT
inverted: true
output:
2024-09-02 03:56:35 +02:00
- platform: gpio
id: ch422_out_0
2024-09-02 03:56:35 +02:00
pin:
ch422g: ch422g_hub
number: 0
mode: OUTPUT
inverted: false
- platform: gpio
id: ch422_out_11
pin:
ch422g: ch422g_hub
number: 11
mode: OUTPUT_OPEN_DRAIN
inverted: true