mirror of https://github.com/arendst/Tasmota.git
Updated Rules (markdown)
parent
171c86f778
commit
b9df31ca74
4
Rules.md
4
Rules.md
|
@ -54,7 +54,7 @@ Available triggers are:
|
|||
- ``Power1#State`` when a power output is changed
|
||||
- ``Button2#State`` when a button input is changed
|
||||
- ``Switch1#State`` when a switch input is changed
|
||||
- ``Analog#A0div10`` when the A0 input changes by more than 1% it provides a value between 1 and 100
|
||||
- ``Analog#A0div10`` when the A0 input changes by more than 1% it provides a value between 0 and 100
|
||||
|
||||
In addition all connected sensors can be a trigger in the form as they are represented in the teleperiod or Status 8 JSON message like:
|
||||
|
||||
|
@ -183,7 +183,7 @@ Rule
|
|||
- ``on analog#a0div10 do dimmer %value% endon``
|
||||
|
||||
Result
|
||||
- Turning the potentiometer the voltage on the analog input will change resulting in a value change of 1 to 100 for the trigger. Using this value to control the dimmer of the WS2812 will control the brightness of the led(s)
|
||||
- Turning the potentiometer the voltage on the analog input will change resulting in a value change of 0 (Off) to 100 for the trigger. Using this value to control the dimmer of the WS2812 will control the brightness of the led(s)
|
||||
|
||||
Rule
|
||||
- ``on analog#a0div10 do publish cmnd/grouplight/dimmer %value% endon``
|
||||
|
|
Loading…
Reference in New Issue