Fixed rule event usage sintax

MadDoct 2018-08-27 22:43:20 +01:00
parent 62fc9c7977
commit 7317d9eb6f
1 changed files with 1 additions and 1 deletions

@ -219,7 +219,7 @@ MQT: stat/sonoff/RESULT = {"Event":"Done"}
The latter makes it possible to integrate interrupt responses with rules for example:
```
rule on event#MCPINTD0=1 do power on endon on event#MCPINTD0=0 do power off endon
rule on event#MCPINT_D0=1 do power on endon on event#MCPINT_D0=0 do power off endon
```
In the example above the rule would respond to an interrupt of HIGH on pin 0 of the MCP by executing command "power on" and respond to an interrupt of LOW on pin 0 with the command "power off"