# ESPHome

substitutions:
  name: "Office Notifier"

esphome:
  name: office-notifier
  friendly_name: Office Notifier

esp32:
  board: esp32dev
  framework:
    type: arduino

logger:

api:
  encryption:
    key: !secret encryption_key

ota:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: !secret wifi_ip
    gateway: !secret wifi_gateway
    subnet: !secret wifi_subnet
    dns1: !secret wifi_dns

captive_portal:

binary_sensor:
  - platform: gpio
    pin:
      number: 39
      inverted: true
    name: Dismiss
    
output:
- platform: ledc
  id: green
  pin: GPIO23
- platform: ledc
  id: yellow
  pin: GPIO21
- platform: ledc
  id: red
  pin: GPIO22

light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: 27
    num_leds: 1
    rgb_order: GRB
    id: status_led
    name: RGB
    effects:
      - random:
          name: "Random"
      - flicker:
          name: "Flicker"
      - addressable_rainbow:
          name: "Rainbow"
      - pulse:
          name: "Pulse"
      - pulse:
          name: "Fast Pulse"
          transition_length: 0.5s
          update_interval: 0.5s
      - pulse:
          name: "Slow Pulse"
          update_interval: 2s
  - platform: monochromatic
    output: red
    id: red_light
    name: Red
  - platform: monochromatic
    output: yellow
    id: yellow_light
    name: Yellow
  - platform: monochromatic
    output: green
    id: green_light
    name: Green