substitutions:
  device_name: "lucys-ceiling-lamp"
  friendly_name: "Lucy's Ceiling Lamp"
# Enable logging
logger:

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

ota:
  platform: esphome

esphome:
  name: ${device_name}
  platform: ESP8266
  board: esp01_1m
  
wifi:
  ssid: "FoxNet 69"
  password: Th3M0$t$tup1dP4$$w0rdY0uW1ll3v3r$33


# uncomment these lines and edit with your ip configuration
# leave comments if using DHCP (not recommended)
  manual_ip:
    static_ip: 192.168.2.74
    gateway: 192.168.2.1
    subnet: 255.255.255.0

# Enable fallback hotspot (captive portal) in case wifi connection fails

  ap:
    ssid: "${device_name} Hotspot"
    password: ""

captive_portal:

web_server:
 port: 80

sensor:
  - platform: uptime
    name: ${friendly_name} Uptime

  - platform: wifi_signal
    name: ${friendly_name} Signal Strength

output:
  - platform: esp8266_pwm
    id: output_r
    pin: GPIO4
  - platform: esp8266_pwm
    id: output_cw
    pin: GPIO5
  - platform: esp8266_pwm
    pin: GPIO12
    id: output_g
  - platform: esp8266_pwm
    pin: GPIO13
    id: output_ww
  - platform: esp8266_pwm
    pin: GPIO14
    id: output_b

light:
  - platform: rgbww
    color_interlock: true
    name: ${friendly_name}
    red: output_r
    green: output_g
    blue: output_b
    warm_white: output_ww
    cold_white: output_cw
    cold_white_color_temperature: 5700 K
    warm_white_color_temperature: 3000 K    