mirror of https://github.com/arendst/Tasmota.git
Fixed rule event usage sintax
parent
62fc9c7977
commit
7317d9eb6f
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue