substitutions:
  name: uc-ps18
  friendly_name: Hauslane UC-PS18 Range Hood

external_components:
  - source:
      type: git
      url: https://git.kkozai.com/kenji/esphome-ucps18

esphome:
  name: ${name}
  friendly_name: ${friendly_name}

esp32:
  board: esp32-c3-devkitm-1

# Enable logging
logger:
  level: DEBUG

api:
  custom_services: true
  password: !secret api_password

ota:
  - platform: esphome
    password: !secret ota_password

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

  ap:
    ssid: ${name}
    password: !secret wifi_password

captive_portal: 

uart:
  baud_rate: 3600
  rx_pin: 6
  # uncomment below to get the raw UART messages
  #debug:
  #  direction: RX
  #  sequence:
  #    - lambda: UARTDebug::log_string(direction, bytes);

hauslane:
  id: hauslane_id
  pin_timer: 0
  pin_up: 1
  pin_down: 3
  pin_light: 4
  pin_power: 5

light:
  platform: hauslane
  hauslane_id: hauslane_id
  id: hood_light
  name: Light

fan:
  platform: hauslane
  hauslane_id: hauslane_id
  id: hood_fan
  name: Fan
