Updated Blinds and Roller Shades (markdown)

Michael Ingraham 2019-10-03 00:43:31 -04:00
parent e9e49ae1de
commit b56c0c9703
1 changed files with 24 additions and 24 deletions

@ -2,6 +2,30 @@ This driver adds support to wirelessly control blinds and roller shades connecte
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.
## Shutter Modes
There are three different shutters modes:
1. Normal Operation (`ShutterMode` = `0`)
- `Relay1` OFF/DOWN, `Relay2` OFF/UP
- `Backlog PulseTime1 0; PulseTime2 0`
- `Interlock 1,2` (Interlocked relay pair)
- `Interlock ON`
2. Short Circuit Safe (`ShutterMode` = `1`)
- `Relay1` OFF/DOWN, `Relay2` OFF/UP
- `Backlog PulseTime1 0; PulseTime2 0`
3. Stepper motors (`ShutterMode` = `2`)
- `Relay1` OFF/DOWN PULSE, `Relay2` OFF/UP PULSE
- `Backlog PulseTime1 2; PulseTime2 2`
- `Interlock 1,2` (Interlocked relay pair)
- `Interlock ON`
[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.
**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`and `ShutterCloseDuration` commands will report "Shutter unknown". Send `ShutterRelay<x> 1` and check what `ShutterMode` is displayed:
```
Shutter accuracy digits: 1
Shutter 0 (Relay:1): Init. Pos: 20000 [100 %], Open Vel.: 100 Close Vel.: 100 , Max Way: 20000, Opentime 10.0 [s], Closetime 10.0 [s], CoedffCalc: c0: 0, c1 200, c2: 200, c3: 0, c4: 0, binmask 3, is inverted 1, ShutterMode 0
```
The following commands are supported:
Command<BR> (x = `1..4`)|Parameters
@ -40,30 +64,6 @@ Using manual operation `Switch<x>` pairs may require setting `SwitchMode<x> 4` (
## Stepper Motor Support
There are shutters that have two relays but only need a pulse to start or stop. Depending on the current situation a pulse will stop the shutter or send it into a specific direction. To use these kinds of shutters a [`PulseTime`](Commands#pulsetime) must be defined on each relay. The minimum setting that seems to make it work consistently is `2`. A setting of `1` does not work. If the shutter moves too fast and does not react to a stop command, increase the setting to `3` or `4`.
## Shutter Modes
There are three different shutters modes:
1. Normal Operation (`ShutterMode` = `0`)
- `Relay1` OFF/DOWN, `Relay2` OFF/UP
- `Backlog PulseTime1 0; PulseTime2 0`
- `Interlock 1,2` (Interlocked relay pair)
- `Interlock ON`
2. Short Circuit Safe (`ShutterMode` = `1`)
- `Relay1` OFF/DOWN, `Relay2` OFF/UP
- `Backlog PulseTime1 0; PulseTime2 0`
3. Stepper motors (`ShutterMode` = `2`)
- `Relay1` OFF/DOWN PULSE, `Relay2` OFF/UP PULSE
- `Backlog PulseTime1 2; PulseTime2 2`
- `Interlock 1,2` (Interlocked relay pair)
- `Interlock ON`
[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.
**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`and `ShutterCloseDuration` commands will report "Shutter unknown". Send `ShutterRelay<x> 1` and check what `ShutterMode` is displayed:
```
Shutter accuracy digits: 1
Shutter 0 (Relay:1): Init. Pos: 20000 [100 %], Open Vel.: 100 Close Vel.: 100 , Max Way: 20000, Opentime 10.0 [s], Closetime 10.0 [s], CoedffCalc: c0: 0, c1 200, c2: 200, c3: 0, c4: 0, binmask 3, is inverted 1, ShutterMode 0
```
## Calibration
[Shutter calibration video tutorial](https://www.youtube.com/watch?v=Z-grrvnu2bU)