esphome:
  name: maidsite-desk
  friendly_name: Maidsite Desk

external_components:
  - source:
      type: git
      url: https://github.com/ElVit/esphome_components/
    components: [ maidsite_desk ]

uart:
  - id: uart_bus
    tx_pin: $pin_tx
    rx_pin: $pin_rx
    baud_rate: 9600

maidsite_desk_controller:
  id: my_desk

sensor:
  - platform: maidsite_desk
    height_abs:
      name: "Height"

button:
  - platform: maidsite_desk
    stop:
      name: "Stop"
    step_up:
      name: "Step up"
    step_down:
      name: "Step down"
    goto_max:
      name: "Move to MAX"
    goto_min:
      name: "Move to MIN"
    goto_m1:
      name: "Move to M1"
    goto_m2:
      name: "Move to M2"
    goto_m3:
      name: "Move to M3"
    goto_m4:
      name: "Move to M4"

number:
  - platform: maidsite_desk
    height_abs:
      name: "Height"
      mode: SLIDER

# the usual stuff

esp8266:
  board: esp01_1m

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:
    ssid: "esphome-desk"
    password: "9ebc6eac0b4e0e26b8d3b955ec660557"

captive_portal:
api:
  encryption:
    key: !secret encryption_key
ota:

logger:
