mirror of https://github.com/arendst/Tasmota.git
Update rule to ensure power indicators off at reboot to match relays PowerOnState
parent
ebe795e61f
commit
e2522c49e9
|
@ -42,6 +42,8 @@ _**Note: Use the module configuration to define the Generic Module GPIO settings
|
|||
In order to have the power indicators follow the state of the relays, the two orange LED GPIO must be configured as virtual relays. A rule is used to change the state of the LED "relay" when the real relay is toggled. Also, to avoid excessive flash writes caused by the addition of the virtual relays, disable state saves using [`SetOption0`](Commands#setoption0). In this case, Tasmota will not be able to restore the last known state so [`PowerOnState`](Commands#poweronstate) 3 is not an option. Select the desired power on state for the devices relays. Also, on this device, the status LED default is to turn the LED on whenever either relay is powered on. To avoid having the status LED indicate power status, set [`LEDState`](Commands#ledstate) to only display boot and connectivity status.
|
||||
|
||||
The following Console statements define the necessary settings and rules for configuring the indicator behavior as described above.
|
||||
> Backlog SetOption0 0; PowerOnState 0; LEDState 0; Rule1 ON Power1#State DO Power4 %value% ENDON ON Power2#State DO Power5 %value% ENDON ON System#Boot DO Power3 On ENDON
|
||||
>
|
||||
> Rule1 1
|
||||
```
|
||||
Backlog SerialLog 0; SetOption0 0; PowerOnState 0; LEDState 0
|
||||
Rule1 ON System#Boot DO Power3 On; Power4 Off; Power5 Off ENDON ON Power1#State DO Power4 %value% ENDON ON Power2#State DO Power5 %value% ENDON`
|
||||
Rule1 1
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue