esphome:
  name: presence-bureau
  friendly_name: Présence Bureau
  platformio_options:
    board_build.extra_flags:
      - "-DARDUINO_USB_CDC_ON_BOOT=0"  # Override, defaults to '-DARDUINO_USB_CDC_ON_BOOT=1'

esp32:
  board: lolin_s2_mini
  framework:
    type: arduino

# Enable logging
logger:

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

ota:
  platform: esphome
  password: "c27ed55a655306897d779dec5e642a5f"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Presence-Bureau Fallback Hotspot"
    password: "WnpkIdcznbOM"

captive_portal: