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!
ESP Easy Mega rules problem
Moderators: grovkillen, Stuntteam, TD-er
-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: ESP Easy Mega rules problem
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- Normal user
- Posts: 241
- Joined: 21 Mar 2017, 17:35
Re: ESP Easy Mega rules problem
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
On 4PowerOn Do
longpulse 4,1,2 //e.g. for set GPIO 4 to HIGH for 2 sec and reverts back to LOW.
EndOn
-
- New user
- Posts: 5
- Joined: 04 Feb 2018, 12:34
Re: ESP Easy Mega rules problem
Thanks!!



-
- Core team member
- Posts: 9905
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: ESP Easy Mega rules problem
For the "longpulse_ms", you need a very recent build of ESPeasy.
Who is online
Users browsing this forum: Anthropic Claude Bot [bot], OpenAI Searchbot [bot] and 15 guests