mirror of https://github.com/arendst/Tasmota.git
Updated Rules (markdown)
parent
2a55381c42
commit
579198450f
12
Rules.md
12
Rules.md
|
@ -199,7 +199,7 @@ Example triggers are:
|
|||
|
||||
- ``Tele-AM2301#Temperature``triggers on the TelePeriod time for the sensor AM2301.
|
||||
- ``Dsb18b20#Temperature<20`` whenever the temperature of sensor DSB18B20 is below 20 degrees
|
||||
- ``AM2301-12#Humidity=55.5`` whenever the humidity of sensor AM2301-12 equals 55.5 %
|
||||
- ``AM2301-12#Humidity==55.5`` whenever the humidity of sensor AM2301-12 equals 55.5 %
|
||||
- ``INA219#Current>0.100`` whenever the current drawn is more than 0.1A
|
||||
- ``Energy#Power>100`` whenever the power used is more than 100W
|
||||
|
||||
|
@ -316,12 +316,12 @@ The following examples will explain some use cases.
|
|||
------------------------------------------------------------------------------
|
||||
|
||||
#### 1. Prevent Wemos D1 mini load overcurrent
|
||||
As a WS2812 24 led ring draws approximately 24x3x20 mA = 1.44A and the Wemos D1 mini powered from a PC's USB port can only provide up to 0.5A it would be nice to have some kind of mechanism in place to limit the amount of current to the WS2812 ledring to 0.1A. This is still enough to light all 24 leds up to color 202020.
|
||||
As a WS2812 24 led ring draws approximately 24x3x20 mA = 1.44A and the Wemos D1 mini powered from a PC's USB port can only provide up to 0.5A it would be nice to have some kind of mechanism in place to limit the amount of current to the WS2812 LEDring to 0.1A. This is still enough to light all 24 leds up to color 202020.
|
||||
|
||||
Hardware
|
||||
- Wemos D1 mini
|
||||
- INA219 I2C sensor
|
||||
- WS2812 ledring with 24 leds powered by the Wemos D1 mini 5V thru the INA219 sensor
|
||||
- WS2812 LEDring with 24 LEDs powered by the Wemos D1 mini 5V thru the INA219 sensor
|
||||
|
||||
Software
|
||||
- Sonoff-Tasmota v5.12.0l or up with define USE_RULES enabled
|
||||
|
@ -437,7 +437,7 @@ Connecting a potentiometer to the Analog A0 input and a rule can be used to cont
|
|||
Hardware
|
||||
- Wemos D1 mini
|
||||
- Potentiometer of 2k2 connected to Gnd, A0 and 3V3
|
||||
- WS2812 led
|
||||
- WS2812 LED
|
||||
|
||||
Software
|
||||
- Sonoff-Tasmota v5.12.0n or up with define USE_RULES enabled
|
||||
|
@ -714,11 +714,11 @@ TIMERS:
|
|||
|
||||
` RuleTimer1 600 endon`
|
||||
|
||||
* Additionaly RuleTimer1 will begin to countdown 10 minutes
|
||||
* Additionally RuleTimer1 will begin to countdown 10 minutes
|
||||
|
||||
` on Rules#Timer=1 do power1 off endon`
|
||||
|
||||
* After the RuleTimer1 expires the ligth will be switched off (if you forgot to switch it off)
|
||||
* After the RuleTimer1 expires the light will be switched off (if you forgot to switch it off)
|
||||
|
||||
|
||||
[BackToExamples](https://github.com/arendst/Sonoff-Tasmota/wiki/Rules#examples)
|
||||
|
|
Loading…
Reference in New Issue