From b56c0c97037f5001c291d6b02787495ab801d652 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Thu, 3 Oct 2019 00:43:31 -0400 Subject: [PATCH] Updated Blinds and Roller Shades (markdown) --- Blinds-and-Roller-Shades.md | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Blinds-and-Roller-Shades.md b/Blinds-and-Roller-Shades.md index 3d3c4e1e..892d450e 100644 --- a/Blinds-and-Roller-Shades.md +++ b/Blinds-and-Roller-Shades.md @@ -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 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
(x = `1..4`)|Parameters @@ -40,30 +64,6 @@ Using manual operation `Switch` pairs may require setting `SwitchMode 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 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)