mirror of https://github.com/arendst/Tasmota.git
Add configuration for USB Port
parent
bc878a6cd7
commit
e868879ed6
|
@ -32,15 +32,16 @@ _**Note: Use the module configuration to define the Generic Module GPIO settings
|
|||
|:---|:---|:---|
|
||||
| 0 | Device Status (Green) | LED1i
|
||||
| 3 | Top Button | Button1
|
||||
| 4 | Top LED (Orange) | Relay3i
|
||||
| 4 | Top LED (Orange) | Relay4i
|
||||
| 5 | Bottom Button | Button2
|
||||
| 12 | Bottom Receptacle | Relay2
|
||||
| 13 | Top Receptacle | Relay1
|
||||
| 14 | Bottom LED (Orange) | Relay4i
|
||||
| 14 | Bottom LED (Orange) | Relay5i
|
||||
| 15 | USB Port | Relay3
|
||||
|
||||
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 Power3 %value% ENDON ON Power2#State DO Power4 %value% ENDON
|
||||
> Backlog SetOption0 0; PowerOnState 0; LEDState 0; Rule1 ON Power1#State DO Power4 %value% ENDON ON Power2#State DO Power5 %value% ENDON
|
||||
>
|
||||
> Rule1 1
|
||||
|
|
Loading…
Reference in New Issue