esphome: name: a2 esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: encryption: key: "YnmQggQsfd7jvFefoMqNCpBtb63RXtotS+mSBQVIhY8=" ota: password: "4d5a388de4f759bf88e71cde7a31af6f" wifi: ssid: "KinCony" password: "a12345678" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Kc868-A4 Fallback Hotspot" password: "QOU4hbAjJ5Wb" captive_portal: switch: - platform: gpio name: "a2-light1" pin: 15 inverted: False - platform: gpio name: "a2-light2" pin: 2 inverted: False binary_sensor: - platform: gpio name: "a2-input1" pin: number: 36 inverted: true - platform: gpio name: "a2-input2" pin: number: 39 inverted: true