esphome:
  name: protoboxer
  friendly_name: ProtoBoxer

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "+t+IODNRTMX2AkJZyOGjmC+WBcwwmJ874iIhJVGKHuI="

ota:
  password: "0377f5a51e4dd7dd46399327b569a261"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "ProtoBoxer Fallback Hotspot"
    password: "sCzNkwVVxOLP"

captive_portal:

sensor:
  - platform: dht
    pin: GPIO12
    temperature:
      name: "Room Temperature"
    humidity:
      name: "Room Humidity"
    update_interval: 30s
  - platform: adc
    pin: A0
    name: "ESP-2 Gas ADC"
    update_interval: 30s
    filters:
      - multiply: 100
    unit_of_measurement: "%"
    icon: "mdi:percent"  


light:
  - platform: binary
    name: "LED 1"
    output: light_output

output:
  - id: light_output
    platform: gpio
    pin: GPIO14


binary_sensor:
  - platform: gpio
    pin: GPIO10
    name: "Motion Sensor PIR"
    device_class: motion
  
switch:
    - platform: gpio
      id: buzzer
      name: buzzer
      pin: GPIO5

    