Updated Rule Cookbook (markdown)

Matthias Bilger 2019-07-08 18:05:12 +02:00
parent 499417ba3c
commit 3d2ffa8c64
1 changed files with 8 additions and 1 deletions

@ -33,6 +33,7 @@
28. [Using BREAK to simulate IF..ELSEIF..ELSE..ENDIF](#28-Using-BREAK-to-simulate-IFELSEIFELSEENDIF)
29. [Adjust PowerDelta according to current Power values](#29-adjust-powerdelta-according-to-current-power-values)
30. [Simple solar heater control](#30-simple-solar-heater-control)
31. [IR Forward](#32-ir-forward)
------------------------------------------------------------------------------
#### 1. Use long press action on a switch
@ -1233,5 +1234,11 @@ And watch the relay turn on and off based on the values.
Please not that this example does not support manual override or handle missing sensor data. Take a look at [Simple Thermostat Example](#9-simple-thermostat-example) for examples.
#### 31. IR Forward
[Back To Top](#top)
Using one IR receiver and one sender (or both extender) you can simply forward signals from one to another using the following rule
```
rule1 on IRreceived#Data do publish cmnd/irsideboard/irsend {Protocol:NEC,Bits:32,Data:0x%value%} endon
```
[Back To Top](#top)