Updated Rules (markdown)

Theo Arends 2018-04-29 13:49:32 +02:00
parent 171c86f778
commit b9df31ca74
1 changed files with 2 additions and 2 deletions

@ -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``