Skip to content

Instantly share code, notes, and snippets.

@sleshin
sleshin / gist:2309ddefd10168fee00a3930c235c6c2
Last active September 10, 2025 08:56
ESPHome YAML configuration for controlling a curtain motor using an ESP32. Features include: Time-based cover control with configurable open and close durations. GPIO limit switches for both open and close positions to stop the motor automatically. PWM motor outputs for forward and reverse motion using ledc platform. OTA updates and API integrat…
esphome:
name: curtainmotor
friendly_name: Curtain Motor
esp32:
board: esp32dev
framework:
type: arduino
wifi: