Timer less than 1 sec is possible?
Moderators: grovkillen, Stuntteam, TD-er
Timer less than 1 sec is possible?
Hi,
I am pretty new with ESPEASY.
I tried to send a pulse command from OpenHab without success to switch a step relay.
So I ad a rule in esp that switch off the gpio after a timer.
The timer can be set in seconds, I would need a 300ms Pulse
Is it possible? and how?
Regards
Lorenzo
I am pretty new with ESPEASY.
I tried to send a pulse command from OpenHab without success to switch a step relay.
So I ad a rule in esp that switch off the gpio after a timer.
The timer can be set in seconds, I would need a 300ms Pulse
Is it possible? and how?
Regards
Lorenzo
Re: Timer less than 1 sec is possible?
There is a description int he wiki.
Different commands for pulse lenght are availlable.
https://letscontrolit.com/wiki/index.php/GPIO
Different commands for pulse lenght are availlable.
https://letscontrolit.com/wiki/index.php/GPIO
Regards
Shardan
Shardan
Re: Timer less than 1 sec is possible?
Thanks for your reply.
I rerad the wiki but I was not able to send the pulse command with a openhab switch.
I can send just a gpio 1 or 2
Can you help me?
Thanks
lorenzo
I rerad the wiki but I was not able to send the pulse command with a openhab switch.
I can send just a gpio 1 or 2
Can you help me?
Thanks
lorenzo
Re: Timer less than 1 sec is possible?
Can you send HTTP commands? Then try this:
Example to send an active high pulse on GPIO 2 for 300 mSec:
http://<ESP IP address>/control?cmd=Pulse,2,1,300 (1=high impulse, 0=low impulse)
Example to send an active high pulse on GPIO 2 for 300 mSec:
http://<ESP IP address>/control?cmd=Pulse,2,1,300 (1=high impulse, 0=low impulse)
Re: Timer less than 1 sec is possible?
Hi thanks,
Using httl will complicate a bit the switch status ...
Is there any alternative publish message?
I tried:
/[ESP name]/pulse/2/1/ 300 I doesnt work
/[ESP name]/pulse/2 1 300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1/ 300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1/300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1,300 is just like gpio 2,1 (no pulse)
...any idea? Or it is not possible?
Thnks
Lorenzo
Using httl will complicate a bit the switch status ...
Is there any alternative publish message?
I tried:
/[ESP name]/pulse/2/1/ 300 I doesnt work
/[ESP name]/pulse/2 1 300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1/ 300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1/300 is just like gpio 2,1 (no pulse)
/[ESP name]/pulse/2 1,300 is just like gpio 2,1 (no pulse)
...any idea? Or it is not possible?
Thnks
Lorenzo
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Timer less than 1 sec is possible?
Code: Select all
/[ESP name]/cmd pulse,2,1,300
I see that all examples are HTTP on the GPIO page. Will fix that... MQTT is the future

https://www.letscontrolit.com/wiki/index.php/GPIO
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



Re: Timer less than 1 sec is possible? SOLVED
Thanks...Solved!
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Timer less than 1 sec is possible?
I have now updated the wiki... hope it makes more sense? https://www.letscontrolit.com/wiki/index.php/GPIO
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



Who is online
Users browsing this forum: No registered users and 15 guests