Jetzt unter 40 Euro 4 Stück mit Tasmota ESP32 (viele Ports um WebUI-Buttons und Programme verwalten zu können !) - Nous A8T Tasmota vorinstalliert Release 13.3 und CPU ESP32-U4WDH-D v3.1 (Dual Core + 4MB aber mit dem Release der interne Hall-Sensor nicht mehr unterstützt)
Erweiterung:
backlog webbutton1 Ein/Aus; Webbutton2 Rückstellen; Webbutton3 Daten; webtime 0,19
template {"NAME":"Counter1 = Einschaltungen <p> Counter2 = Laufzeitminuten","GPIO":[1,1,320,1,32,1,1,1,352,224,2624,353,1,1,225,226,0,1,1,1,0,1,2656,2720,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1}
rule1
on system#init do Backlog VAR3 0; VAR4 0; time 1587435620; time 0; power3 0 endon
on time#minute|1 do Backlog ADD4 %VAR3% endon
on VAR4#state do Backlog Counter2 +1 endon
on power1#state=1 do Backlog mem2 %timestamp%; VAR3 1; Counter1 +1 endon
on power1#state=0 do Backlog mem3 %timestamp%; VAR3 0 endon
on power2#State>0 do Backlog counter1 0.0; counter2 0.0; mem2 0; mem3 0; VAR3 0; time 0; power2 0 endon
on power3#State>0 do VAR2 A endon
on VAR2#State=A do Backlog letzte_Ein_%mem2% endon
on VAR2#State=A do Backlog letzte_AUS_%mem3% endon