Skip to main content

Motorized Shutters & Blinds

Full control for motorized curtains, blinds, and roller shutters.

Driver typesโ€‹

DriverUse case
Dual RelaySimple shutters (two relays)
L298NStronger motors

Wiringโ€‹

Dual Relayโ€‹

PinESP32
Relay UPGPIO 22
Relay DOWNGPIO 23

L298Nโ€‹

PinESP32
ENA (speed)GPIO 19
IN1GPIO 20
IN2GPIO 21

Controlโ€‹

  • Open / Close / Stop: direct action buttons
  • Position %: set open percentage (0โ€“100%)

MQTTโ€‹

Control: smarthome/{esp32_name}/shutter/{device_id}/set
{"action":"open"}
{"action":"close"}
{"action":"stop"}
{"action":"position","position":75}

State: smarthome/{esp32_name}/shutter/{device_id}/state
{"action":"open","position":75,"moving":true}

ESP32 configโ€‹

{
"id": 5,
"type": "SHUTTER",
"driver": "DUAL_RELAY",
"gpio_up": 22,
"gpio_down": 23,
"travel_time_ms": 5000
}