esphome: name: a16-otopl friendly_name: -A16-OTOPLENIE- esp32: board: esp32dev # Перенесли сюда framework: type: arduino i2c: sda: 4 scl: 5 scan: true id: bus_a ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 ota: - platform: esphome password: E34m50b25 pcf8574: - id: pcf8574_out_1 address: 0x24 # Выходы 1-8 - id: pcf8574_out_2 address: 0x25 # Выходы 9-16 - id: pcf8574_in_1 address: 0x21 # Входы 1-8 - id: pcf8574_in_2 address: 0x22 # Входы 9-16 switch: - platform: gpio name: " Vixod 1 " pin: pcf8574: pcf8574_out_1 number: 0 mode: OUTPUT inverted: true icon: mdi:electric-switch - platform: gpio name: "Vixod 2" pin: pcf8574: pcf8574_out_1 number: 1 mode: OUTPUT inverted: true icon: mdi:toggle-switch-variant - platform: gpio name: "Vixod 3" pin: pcf8574: pcf8574_out_1 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "Vixod 4" pin: pcf8574: pcf8574_out_1 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "Vixod 5" pin: pcf8574: pcf8574_out_1 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "Vixod 6" pin: pcf8574: pcf8574_out_1 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "Vixod 7" pin: pcf8574: pcf8574_out_1 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "Vixod 8" pin: pcf8574: pcf8574_out_1 number: 7 mode: OUTPUT inverted: true binary_sensor: - platform: gpio name: "Vxod 1" pin: pcf8574: pcf8574_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "Vxod 2" pin: pcf8574: pcf8574_in_2 number: 1 mode: INPUT inverted: true logger: level: DEBUG # Увеличенный уровень логирования для отладки api: web_server: port: 80