Updated KNX Features (markdown)

Adrian Scillato 2018-09-22 12:56:55 -03:00
parent 4a243b45d3
commit 700e59b4e4
1 changed files with 16 additions and 0 deletions

@ -116,3 +116,19 @@ In rules we can use the events to catch the reception of VALUES from KNX to thos
Example: ``rule on event#knxrx_val1 do var1 %value% endon`` to store the value received in the variable VAR1 Example: ``rule on event#knxrx_val1 do var1 %value% endon`` to store the value received in the variable VAR1
Also, if a Read request is received from KNX Network, we can use that in a rule as for example: ``rule on event#knxrx_req1 do knxtx_val1 %var3% endon`` Also, if a Read request is received from KNX Network, we can use that in a rule as for example: ``rule on event#knxrx_req1 do knxtx_val1 %var3% endon``
** 6) Rule to send KNX Telegramm with BH1750 Sensor Data:**
* If you want to send your sensor values by KNX **every teleperiod time** to the Group Address defined in KNX_TX1, you can use the following rule:
```
rule1 1
rule1 on tele-BH1750#Illuminace do knxtx_val1 %value% endon
```
* If you want to send your sensor values by KNX only **when it changes in a delta of 10 lx** to the Group Address defined in KNX_TX1, you can use the following rule:
```
rule1 1
rule1 on system#boot do backlog var1 0; var2 0 endon on BH1750#Illuminace>%var1% do backlog var1 %value%; knxtx_val1 %value%; var2 %value%; add1 2; sub2 2 endon on BH1750#Illuminace<%var2% do backlog var2 %value%; knxtx_val1 %value%; var1 %value%; add1 2; sub2 2 endon
```