# esphome: name: a8-study-room platform: ESP32 board: esp32dev # Example configuration entry for ESP32 i2c: sda: 4 scl: 5 scan: true id: bus_a # Enable logging logger: # Enable Home Assistant API api: encryption: key: "********************************************" ota: password: "0fb1fa5d2db965e28cfb201d5afaf06c" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Kc868-A8 Fallback Hotspot" password: "************" captive_portal: # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-8 address: 0x24 - id: 'pcf8574_hub_in_1' # for input channel 1-8 address: 0x22 # Individual outputs switch: - platform: gpio name: "Study Room Fan" id: a8_study_room_fan pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: false binary_sensor: - platform: gpio name: "a8_study_room_fan" on_press: then: - switch.toggle: a8_study_room_fan pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: input: true dallas: - pin: 14 sensor: - platform: dallas address: 0x1c0000031edd2a28 name: "study_room_temperature_sensor"