Homie
Homie

Develop

Hardware prototyping & firmware

Curtain Rod Motor

A small rotational motor attached to a curtain rod (the kind you twist/turn to open or close the curtain). The ESP32 controls the motor to set the curtain position from 0% (closed) to 100% (open), controlled via WiFi from the Homie dashboard.

Rotational

Twist rod mechanism

Battery Powered

1-2x 1000mAh LiPo

ESP32

WiFi control + deep sleep

Design Goals

Open/close curtain via dashboard or scene
Set position 0-100% with rotational control
Deep sleep between commands for battery life
Report battery level + position to Homie API
Compact enough to hide behind curtain rod
OTA firmware updates via WiFi

How It Works

1

Command received

Dashboard sends target position via WiFi (e.g., "set 75%")

2

ESP32 wakes up

Exits deep sleep, connects to WiFi, receives command

3

Motor rotates rod

H-bridge drives motor CW or CCW to reach target angle

4

Position feedback

Potentiometer or encoder tracks actual rod angle

5

Report & sleep

POSTs state to /api/webhook/device, enters deep sleep