From e868879ed65ddc81071b49b317ed7006e6e00734 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Sun, 7 Apr 2019 08:33:49 -0400 Subject: [PATCH] Add configuration for USB Port --- Kesen-KS-604S.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Kesen-KS-604S.md b/Kesen-KS-604S.md index 38e85114..f2e49c37 100644 --- a/Kesen-KS-604S.md +++ b/Kesen-KS-604S.md @@ -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