You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Blinds-and-Shutters.md
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,41 +6,52 @@ To use it you must [compile your build](compile-your-build). Add the following t
6
6
#endif
7
7
```
8
8
----
9
-
This driver adds support to wirelessly control blinds and roller shades connected to regular ON/OFF motors or stepper motors.
9
+
?> Control blinds and roller shades connected to regular ON/OFF motors or stepper motors.
10
10
11
11
The device must have at least two relays (e.g., a [Sonoff Dual R2](#sonoff-dual-r2-required-configuration)). Otherwise the shutter feature will not work.
12
12
13
+
## Commands
14
+
First enable shutter support with `SetOption80 1`
15
+
16
+
Complete list of commands is available at [Blinds, Shutters and Roller Shades Commands](Commands#blinds-shutters-and-roller-shades).
17
+
13
18
## Shutter Modes
14
-
There are three shutter modes which are defined according to the PulseTime and Interlock settings. The examples below are for a `ShutterRelay1 1` configuration (i.e., `Relay1` and `Relay2`).
15
-
1. Normal Operation (ShutterMode: 0) - First relay: OFF/DOWN, Second relay: OFF/UP
19
+
There are three shutter modes which are defined according to the [PulseTime](Commands#pulsetime) and [Interlock](Commands#interlock) settings. The examples below are for a `ShutterRelay1 1` configuration (using Relay1 and Relay2).
[Diagrams](#wiring-diagrams) for Normal, Stepper motor, and Short Circuit-Safe configurations are available at the end of this page. Even if the shutter does not have two motors, three wires have to be connected.
35
+
[Wiring diagrams](#wiring-diagrams) for Normal, Stepper motor, and Short Circuit-Safe configurations are available at the end of this page. Even if the shutter does not have two motors, three wires have to be connected.
26
36
27
-
**After setting the options for shutter mode, the device must be rebooted.** Otherwise, the sliders won't be available in the web UI, and the `ShutterOpenDuration<x>`and `ShutterCloseDuration<x>` commands will report "Shutter unknown". Send `ShutterRelay<x> 1` and check what `ShutterMode` is displayed:
28
-
```
37
+
> [!NOTE]**After setting the options for shutter mode, the device must be rebooted.** Otherwise, the sliders won't be available in the web UI, and the `ShutterOpenDuration<x>`and `ShutterCloseDuration<x>` commands will report "Shutter unknown".
38
+
39
+
Issue `ShutterRelay<x> 1` command and check in console which **ShutterMode** is displayed:
Refer to the [Blinds, Shutters and Roller Shades Commands](Commands#blinds-shutters-and-roller-shades)
35
-
36
47
Turning a device relay on or off directly (i.e., using `Power`) will function to affect a shutter's movement. In momentary mode (i.e., stepper motor), the relays start or stop the motor. The driver takes care of the direction and proper update of the shutter position.
37
48
38
49
By default, only `Shutter1` is enabled when `SetOption80 1` is invoked.
To enable additional shutters, `ShutterRelay<x> <value>` must be executed for each additional shutter. Additional shutter declarations must be sequentially numbered, and without gaps (i.e., first shutter 2, then shutter 3, and finally shutter 4).
0 commit comments