1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-13 16:38:18 +00:00
2025-02-05 15:37:15 +13:00

29 lines
460 B
YAML

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