esphome:
  name: living-motion

esp32:
  board: upesy_wroom
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: ""

ota:
  password: ""

wifi:
  ssid: "Cochrun"
  password: "GreasyChicken784"

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

captive_portal:
    
uart:
  tx_pin: GPIO27
  rx_pin: GPIO26
  baud_rate: 115200

dfrobot_sen0395:

binary_sensor:
  # Information coming from uart bus
  - platform: dfrobot_sen0395
    name: Mmwave UART

  # Information coming from dedicated gpio (IO2)
  - platform: gpio
    name: Mmwave GPIO
    device_class: motion
    pin:
      number: GPIO25
      mode: INPUT_PULLDOWN

switch:
  # Switch to turn on/off detection
  - platform: dfrobot_sen0395
    type: sensor_active
    name: Mmwave Active

  # - platform: dfrobot_sen0395
  #   type: turn_on_led
  #   name: Mmwave Led
  #   restore_mode: always_on
  #   icon: "mdi:led-on"

  # - platform: dfrobot_sen0395
  #   type: start_after_boot
  #   name: Mmwave Start
  #   restore_mode: always_on
