esphome: name: ks868-a8-1 friendly_name: ks868-a8-1 esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: encryption: key: "y4IJC0LBpoiFCDZ3JGwDdDduEvsjb1k+y/fck64eaI8=" ota: password: "1f06743b5bb65020da4ba845d668c5fe" 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.201 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 - platform: gpio name: "input-s3" pin: number: 32 inverted: true - platform: gpio name: "input-s4" pin: number: 33 inverted: true dallas: - pin: GPIO14 #id: hub_1 update_interval: 5s sensor: - platform: dallas name: "Temp_1" id: Temp_1 #dallas_id: hub_1 resolution: 10 address: 0xde03089779824028 - platform: dallas name: "Temp_2" id: Temp_2 resolution: 12 address: 0x1603119779f3c428 - platform: adc pin: GPIO34 name: "Analog-IN1" update_interval: 5s attenuation: 11db - platform: adc pin: GPIO35 name: "Analog-IN2" update_interval: 5s attenuation: 11db # Example configuration entry remote_receiver: pin: GPIO15 dump: - rc_switch tolerance: 50% filter: 250us idle: 4ms buffer_size: 2kb