esphome: name: kc868-a8 platform: ESP32 board: esp32dev # Enable logging logger: # Enable Home Assistant API api: ota: password: "bfb55afbf347b27a4bda0a1d36ee994f" web_server: port: 80 # Example configuration entry for ESP32 i2c: sda: 4 scl: 5 scan: true id: bus_a # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 # Optional manual IP manual_ip: static_ip: 192.168.1.199 gateway: 192.168.1.1 subnet: 255.255.255.0 # Example configuration entry pcf8574: - id: 'pcf8574_hub_output' address: 0x24 - id: 'pcf8574_hub_input' address: 0x22 # Individual outputs switch: - platform: gpio name: "switch1" id: switch1 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 0 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch2" id: switch2 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 1 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch3" id: switch3 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 2 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch4" id: switch4 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 3 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch5" id: switch5 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 4 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch6" id: switch6 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 5 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch7" id: switch7 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 6 # One of INPUT or OUTPUT mode: OUTPUT inverted: true - platform: gpio name: "switch8" id: switch8 pin: pcf8574: pcf8574_hub_output # Use pin number 0 number: 7 # One of INPUT or OUTPUT mode: OUTPUT inverted: true binary_sensor: - platform: gpio name: "input1" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 0 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch1 - platform: gpio name: "input2" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 1 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch2 - platform: gpio name: "input3" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 2 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch3 - platform: gpio name: "input4" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 3 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch4 - platform: gpio name: "input5" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 4 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch5 - platform: gpio name: "input6" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 5 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch6 - platform: gpio name: "input7" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 6 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch7 - platform: gpio name: "input8" pin: pcf8574: pcf8574_hub_input # Use pin number 0 number: 7 # One of INPUT or OUTPUT mode: INPUT inverted: true #on_press: #then: #- switch.toggle: switch8 # Example configuration entry dallas: - pin: GPIO14 update_interval: 5s sensor: - platform: dallas address: 0xE701202C5ADED628 name: "Temperature_1" id: Temperature_1 - platform: dallas address: 0xBE012115DCBEBC28 name: "Temperature_2" id: Temperature_2 - platform: adc pin: GPIO34 name: "Analog-IN1" update_interval: 5s attenuation: 11db - platform: adc pin: GPIO35 name: "Analog-IN2" update_interval: 5s attenuation: 11db remote_receiver: pin: 19 dump: - rc_switch tolerance: 50% filter: 250us idle: 4ms buffer_size: 2kb remote_transmitter: pin: 21 # RF uses a 100% carrier signal carrier_duty_percent: 100%