I have a OBI Socket where an external contact is connected via PullUp resistor to GPIO16.
The idea is that, if the sensor switch is not switched ON in between 18 seconds after boot, the Power is switched off.
The rule "
ON Switch2#state=1 DO Backlog Power1 on; ruletimer1 0 ENDON" works most of the time. But if the switch gets activated a few seconds after boot, the rule gets not triggered. In this case the ruletimer gets not reset as expected.
If the switch is activated 5 seconds or later after reboot all works fine as expected.
Rule1
ON Switch2#boot DO Backlog Power1 on; ruletimer1 18 ENDON
ON Switch2#state=1 DO Backlog Power1 on; ruletimer1 0 ENDON
ON Switch2#state=0 DO ruletimer1 18 ENDON
ON rules#timer=1 DO Power1 off ENDON
Configuration after a clean installation of Tasmota version 9.5.0:
Backlog
FriendlyName PoolPumpe;
DeviceName PoolPumpe;
Hostname tasmota_PoolPumpe;
SSID2 XXXXXXXX;
Password2 xxxxxxxx;
Module 51;
Gpio16 193;
SetOption114 1;
SwitchMode2 2;
What did wrong or is this a bug of the tasmota software?