---
# Core Configuration: https://esphome.io/components/esphome.html
esphome:
  name: ${esphome_name}

# WiFi Component: https://esphome.io/components/wifi.html
wifi:
  ssid: !secret esphome_wifi_ssid
  password: !secret esphome_wifi_password
  ssid0: !secret esphome_wifi_ssid0
  password0: !secret esphome_wifi_password0
  ssid1: !secret esphome_wifi_ssid1
  password1: !secret esphome_wifi_password1
  ap:
    ssid: "AP - ${devicename}"
    password: !secret esphome_wifi_ap_password

# OTA Update Component: https://esphome.io/components/ota.html
ota:
  password: !secret esphome_ota_password

# Logger Component: https://esphome.io/components/logger.html
logger:
  level: $logger_level

# Native API Component: https://esphome.io/components/api.html
api:
  encryption:
    key: $api_encryption_key
  password: $api_password

# Captive Portal: https://esphome.io/components/captive_portal.html
captive_portal:

# Web Server: https://esphome.io/components/web_server.html
web_server:
  local: true
  port: 80

# Time: https://esphome.io/components/time.html
time:
  - platform: homeassistant
    id: homeassistant_time

# Status Binary Sensor: https://esphome.io/components/binary_sensor/status.html
binary_sensor:
  - platform: status
    name: "${devicename} - Status"

# Restart Button: https://esphome.io/components/button/restart.html
button:
  - platform: restart
    name: "${devicename} - Restart"