AZDelivery ESP8266-01S ESP-01: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 4: Zeile 4:
  
  
Set module to Generic (18) (in module configuration and click save)
+
=Console=
Set D3 GPIO0 as Relay1 (21) (in module configuration and click save)
+
SetOptions19 1
 +
<pre>
 +
Rule1
 +
on System#Boot do Backlog Baudrate 9600; SerialSend5 0 endon
 +
on Power1#State=1 do SerialSend5 A00101A2 endon
 +
on Power1#State=0 do SerialSend5 A00100A1 endon
 +
</pre>
 +
 
 
Disable SerialLog (type seriallog 0 in the Tasmota console)
 
Disable SerialLog (type seriallog 0 in the Tasmota console)
 
Add the following rules typing in the console:
 
Add the following rules typing in the console:

Version vom 15. Januar 2021, 11:29 Uhr

Single Relay

Esp-01-relay1.png


Console

SetOptions19 1
Rule1
 on System#Boot do Backlog Baudrate 9600; SerialSend5 0 endon
 on Power1#State=1 do SerialSend5 A00101A2 endon
 on Power1#State=0 do SerialSend5 A00100A1 endon

Disable SerialLog (type seriallog 0 in the Tasmota console) Add the following rules typing in the console: Rule1

on System#Boot do Backlog Baudrate 9600; SerialSend5 0 endon
on Power1#State=1 do SerialSend5 A00101A2 endon
on Power1#State=0 do SerialSend5 A00100A1 endon

Enable the rule (type rule1 1 in the Tasmota console)