rule1 ON Power1#state=1 DO Power2 on ENDON ON Power1#state=0 DO power2 off ENDON
rule1 ON Power1#state=1 DO Power2 on ENDON ON Power1#state=0 DO power2 off ENDON
rule2 ON Time#Minute=120 DO rule3 1 ENDON ON Time#Minute=360 DO rule3 1 ENDON
rule3 ON Mqtt#Disconnected do backlog power1 1;delay 1; power1 0;rule3 0 endon