esphome:
  name: esphome-dg-bad
  friendly_name: ESPHome DG Bad

esp32:
  board: esp32dev
  framework:
    type: esp-idf

# Enable logging
logger:


# Allow Over-The-Air updates
ota:
  - platform: esphome
    password: "65693564c30288217a499a25568a25ba"

# Enable Home Assistant API
api:
  encryption:
    key: "NwsMXcJRNHAQarRx+ozHgfPgkH+l0qH20/gYrgkinW4="

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Dg-Bad Fallback Hotspot"
    password: "yOrmok2q7DWu"

captive_portal:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO12
      inverted: false
      mode:
        input: true
        pullup: true
    name: "Bewegungssensor Büro"
    device_class: motion    