esphome:
  name: under-bed
  friendly_name: Under Bed

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

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

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: "Under-Bed Fallback Hotspot"
    password: "gjr4VnlR9Rfq"

captive_portal:

web_server:

light:
  - platform: rgb
    name: "Under Bed"
    red: r
    green: g
    blue: b
    default_transition_length: 
      milliseconds: 200

output:
  - platform: ledc
    pin: GPIO16
    id: g
  - platform: ledc
    pin: GPIO17
    id: r
  - platform: ledc
    pin: GPIO18
    id: b