ESP Easy Mega rules problem

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
sandrinoz600
New user
Posts: 5
Joined: 04 Feb 2018, 12:34

ESP Easy Mega rules problem

#1 Post by sandrinoz600 » 04 Feb 2018, 12:57

Hello!
I just got into the way of home automation, so I'm a newbie.
I flashed my first 4ch sonoffs successfully and created the configuration, now I have a problem with the settings.
These sonoffs are connected to the house system in parallel with the lights switch-on buttons (via a siemens logo).
My problem is how to set the configuration to make the output relays behave like a button, with the rules (reading various topics) I managed to make them work as an impulse but probably the impulse is too fast and sometimes the plc to which they are attached he can not read the impulse.
How do I generate a longer output pulse?
This is my rules:
On 4PowerOn Do
gpio,4,1
timerSet,1,1
gpio,4,0
EndOn

On 4PowerOff Do
gpio,4,1
timerSet,1,1
gpio,4,0
EndOn
I look forward to help from the experts!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden

Re: ESP Easy Mega rules problem

#2 Post by grovkillen » 04 Feb 2018, 14:02

Longpulse or pulse is what you are looking for.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: ESP Easy Mega rules problem

#3 Post by vader » 04 Feb 2018, 14:22

LongPulse,<GPIO>,<value in sec> or LongPulse_mS,<GPIO>,<value im msec>.

On 4PowerOn Do
longpulse 4,1,2 //e.g. for set GPIO 4 to HIGH for 2 sec and reverts back to LOW.
EndOn

sandrinoz600
New user
Posts: 5
Joined: 04 Feb 2018, 12:34

Re: ESP Easy Mega rules problem

#4 Post by sandrinoz600 » 04 Feb 2018, 15:45

Thanks!! :D :D

TD-er
Core team member
Posts: 9903
Joined: 01 Sep 2017, 22:13
Location: the Netherlands

Re: ESP Easy Mega rules problem

#5 Post by TD-er » 05 Feb 2018, 09:45

For the "longpulse_ms", you need a very recent build of ESPeasy.

Who is online

Users browsing this forum: Anthropic Claude Bot [bot], Perplexity.ai [bot] and 20 guests