esphome:
  name: esp-home-hall
  friendly_name: Esp-Home-Hall

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

web_server:

captive_portal:


# Enable Home Assistant API
api:
  encryption:
    key: "AMc594qbzF9SwLtCKcAH8jvTeOvNtgOcJzPxpy7BuAU="

ota:
  platform: esphome
  password: !secret ota

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp-Home-Hall Fallback Hotspot"
    password: "eCkB9AHkfKl6"

    
switch:
  - platform: gpio
    restore_mode: ALWAYS_ON
    name: "Panel charger"
    pin:
      number: 13
      inverted: true