diff --git a/docs/Berry-Cookbook.md b/docs/Berry-Cookbook.md index b17d3dea2f..f7f98bb2fb 100644 --- a/docs/Berry-Cookbook.md +++ b/docs/Berry-Cookbook.md @@ -649,9 +649,10 @@ def netflip() end tasmota.set_timer(30000,netflip) #4 ``` + 1. store variable "eth" with Ethernet status - "true" if Ethernet IP exists and "false" if not 2. check if wifi status is true and compare to eth status -3. send command `Wifi` with parameter depending on eth variable. `..` is to concatenate a string. See Berry [manualg(https://github.com/berry-lang/berry/wiki/Chapter-3#-operator-1) +3. send command `Wifi` with parameter depending on eth variable. `..` is to concatenate a string. See Berry [manual](https://github.com/berry-lang/berry/wiki/Chapter-3#-operator-1) 4. set a timer to execute the netflip function 30000ms (30 seconds) after loading `autoexec.be` ## TMP117 Driver diff --git a/docs/Blinds-and-Shutters.md b/docs/Blinds-and-Shutters.md index 992bc39757..cde467335c 100644 --- a/docs/Blinds-and-Shutters.md +++ b/docs/Blinds-and-Shutters.md @@ -80,7 +80,24 @@ Shutter 0 (Relay:1): Init. Pos: 20000 [100 %], Open Vel.: 100 Close Vel.: 100 , ## Operation 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. -The shutter reports its position and can also be sent to a dedicated position. `ShutterPosition 0` means the shutter is closed and `ShutterPosition 100` means the shutter is open. If you need the position values reversed (`0` = open, `100` = closed), define and [calibrate your shutter as documented below](#calibration). Then tell Tasmota to reverse the shutter position meaning via the `ShutterInvert 1` command. All internal calculations are the same (the log output is the same). Only the interaction with the user and other systems changes. Now `ShutterPosition 0` will open the shutter and `ShutterPosition 100` will close the shutter. To set a value to all shutter you can use the index 0. For example `ShutterPosition0 30` will move all shutters to 30%. The index 0 also works with all configuration items. +The shutter reports its position and can also be sent to a dedicated position. `ShutterPosition 0` means the shutter is closed and `ShutterPosition 100` means the shutter is open. If you need the position values reversed (`0` = open, `100` = closed), define and [calibrate your shutter as documented below](#calibration). Then tell Tasmota to reverse the shutter position meaning via the `ShutterInvert 1` command. All internal calculations are the same (the log output is the same). Only the interaction with the user and other systems changes. Now `ShutterPosition 0` will open the shutter and `ShutterPosition 100` will close the shutter. + +Function | ShutterInvert 0 | ShutterInvert 1 +-- | -- | -- +Relay 1 | open shutter | open shutter +Relay 2 | close shutter | close shutter +Webbutton UP | open shutter | open shutter +Webbutton DOWN | close shutter | close shutter +Slider OPEN | open shutter | open shutter +Slider CLOSE | close shutter | close shutter +ShutterOpen | open shutter | open shutter +ShutterClose | close shutter | close shutter +ShutterPosition 100 | open shutter | close shutter +ShutterPosition 0 | close shutter | open shutter +Reported position when open | 100 | 0 +Reported position when close | 0 | 100 + +To set a value to all shutter you can use the index 0. For example `ShutterPosition0 30` will move all shutters to 30%. The index 0 also works with all configuration items. When `SetOption80 1` is invoked you have to define `Shutterrelay1 ` to get started If possible to avoid any injury on unexpected movement all RELAYS should start in OFF mode when the device reboots: `PowerOnState 0` @@ -178,7 +195,7 @@ Following defaults are pre-compiled into the code and can only be changed by com ### Motor Stop time When shutters change direction immediatly it can happen that there is a short circuit or at least high moments on the motors. Therfore the default time between a STOP and the next START of the shutter is 0.5s = 500ms. This allows in most cases the shutter to fully stop and then start from a static position. With Version 12.3 you can change the duration through `shuttermotorstop 500` or any other value in ms. The value is for all defined shutters the same. -WARNING: If you control the relay DIRECT through buttons os switches and do not use shutterbuttons or a rule to decouple it, then the MOTOSTOPTIME cannot kick in. The Relay in ON before the shutterdriver can intercept. +WARNING: If you control the relay DIRECT through buttons or switches and do not use shutterbuttons or a rule to decouple it, then the MOTOSTOPTIME cannot kick in. The Relay is ON before the shutterdriver can intercept. ### Button Control When shutter is running in `ShutterMode 1` (normal two relay up/off down/off), you already have basic control over the shutter movement using switches or buttons in the module configuration to directly drive the shutter relays. For short circuit safe operation `ShutterMode 2` direct control of the relays will not give you a nice user interface since you have to 1st set the direction with one switch/button and 2nd switch on the power by the other switch/button. Because the button controll use multi-press events ensure that the "immediate action" is disabled: `SetOption13 0` (default) @@ -209,7 +226,7 @@ More advanced control of the button press actions is given by the following `Shu `ShutterButton