esphome:
  name: espdimmer
  platform: ESP8266
  board: d1_mini

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: !secret ota_key

ota:
  platform: esphome
  password: !secret ota_key

wifi:
  ssid: "lauIOT"
  password: "superiot1"
  domain: .home.cabestan.be

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

captive_portal:

web_server:
  port: 80



output:
  - platform: ac_dimmer
    id: dimmer1
    gate_pin: GPIO13
    zero_cross_pin:
      number: GPIO15
      mode:
        input: true
      inverted: yes


light:
  - platform: monochromatic
    output: dimmer1
    name: "Dimmed output"


