In Configure Module (not template) set GPIO4 as Relay2. Then set BlinkCount 1 and BlinkTime 300
Advantage of Blink is can use output normally by using power2 1 or 0 or getting it to pulse by using power2 3
If you want it to pulse only when power1 comes on
Rule1
On power1#state=1 do power2 3 endon
If you want it to pulse on every change of state
Rule1
On power1#state do power2 3 endon
Bear in mind that you may need to set GPIO4 as Relay2i depending on what the GPIO is driving – relay boards often go low to turn them on.
Regards
Phil K
Sent from Mail for Windows
From: Petr Jakes
Sent: 10 October 2021 07:28
To: Philip Knowles
Cc: TasmotaUsers
Subject: Re: rule to set GPIO output high/low for 30s
Thanks for the answer, Phil,
Maybe I was not clear enough in the description of my problem.
Thks
On Sun, Oct 10, 2021 at 5:16 AM Philip Knowles <knowles...@gmail.com> wrote:
A Relay is an output but use PulseTime or Blink.
Power1#State is responding to the change in state of Relay1.
Regards
Phil K
From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Petr Jakes <petr.ja...@gmail.com>
Sent: Saturday, October 9, 2021 9:10:36 PM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: rule to set GPIO output high/low for 30s
using tasmota 9.5.0
I would like to set the one of the GPIOs high for 30s when the Power1#State changes.
- I can not find the way how to set the GPIO as an output (it the "configure template" I can not find such an option, only LED looks usable but I did not try it)
- I do not know how to set GPIO high in the rule
ON Power1#state DO RuleTimer1 30 ENDON
ON Rules#Timer=1 DO ????? ENDONThks for your kind help