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: docs/Rules.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1966,7 +1966,7 @@ The only catch is that the protocol needs to be setup in the rule. Most likely t
1966
1966
1967
1967
### RfRaw command duplicator
1968
1968
1969
-
Sonoff RF bridge with Tasmota firmware is able to send out the radio-frequency commands very quickly. If some of your covers 'miss' the commands occassionally (you can see that from the fact that the state shown in the HA system does not correspond to reality), it may be that those cover motors do not pick up the codes immediately when they are sent.
1969
+
Sonoff RF bridge with Tasmota firmware is able to send out the radio-frequency commands very quickly. If some of your RF covers 'miss' the commands occassionally (you can see that from the fact that the state shown in the HA system does not correspond to reality), it may be that those cover motors do not pick up the codes immediately when they are sent (it may happen not only with RF covers).
1970
1970
1971
1971
This can be handled by sending out the RF code immediately again. While this is possible by repeating the automation sequence in HA system, it is also possible to do the repetition in Tasmota, and send the code only once from your home automation.
1972
1972
@@ -1983,22 +1983,25 @@ To make it work with our RfRaw repeater rule and send it multiple times, it shou
1983
1983
The payload will have be `var1 first-32-chars; Event varf=rest-of-the-chars` from the code.
1984
1984
1985
1985
#### Rule
1986
+
1986
1987
```haskell
1987
1988
rule1 on event#varf do backlog RfRaw %var1%%value%; RfRaw %var1%%value%; RfRaw 0 endon
1988
1989
```
1989
-
Enable it with `rule1 1`
1990
+
Enable it with `rule1 1`.
1990
1991
1991
1992
#### Result
1992
-
The backlog coming through MQTT will:
1993
-
- first set the first 32 characters of the code in variable `var1`;
1994
-
- fire an event with variable `varf` containing the rest of the characters
1995
1993
1996
-
The rule will detect the event (`on event`) and run a new backlog which will:
1997
-
- run command RfRaw with code concatenated of `var1``varf`
1998
-
- run command RfRaw with code concatenated of `var1``varf` again
1999
-
- run command RfRaw 0
1994
+
The backlog coming through MQTT will:<br>
1995
+
- first set the first 32 characters of the code in variable `var1`;<br>
1996
+
- fire an event with variable `varf` containing the rest of the characters<br>
1997
+
1998
+
The rule will detect the event (`on event`) and run a new backlog which will:<br>
1999
+
- run command RfRaw with code concatenated of `var1``varf`;<br>
2000
+
- run command RfRaw with code concatenated of `var1``varf` again;<br>
2001
+
- run command RfRaw 0<br>
2000
2002
2001
-
If you want to repeat the RfRaw 3 times, all you need to do is to simply add in the rule a new `RfRaw %var1%%value%;` before `RfRaw 0`
2003
+
If you want to repeat the RfRaw 3 times, all you need to do is to simply add in the rule a new `RfRaw %var1%%value%;` before `RfRaw 0`.<br>
2004
+
Backlog introduces and [inter-command delay](https://tasmota.github.io/docs/Commands/#setoption34) of 200 milliseconds by default. If you feel the reaction time between your HA system and the covers is too long, you can tweak it by reducing the delay to 60 milliseconds with `SetOption34 60`.
0 commit comments