Using Milliseconds in Rules.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rmhoutz
Normal user
Posts: 36
Joined: 08 Sep 2017, 14:09

Using Milliseconds in Rules.

#1 Post by rmhoutz » 08 Sep 2017, 14:29

Objective is to use a relay to do the same thing as the push button in my garage. To do that I just need the relay to turn on then off again for about 500 milliseconds. I've worked out how to use a timer in the rules to turn the relay off after a second but I really don't need it on for a full second. Is it possible to use milliseconds in the rules?
I have openHAB2 sending a MQTT to the ESP and the rule I set below to turn the switch off.
Any help or advice would be great.

Code: Select all

on Garage_Door#ON do
 gpio,5,1
 timerSet,1,1
 endon

On Rules#Timer=1 do
 gpio,5,0
endon

bfabien
New user
Posts: 3
Joined: 24 Aug 2017, 09:42

Re: Using Milliseconds in Rules.

#2 Post by bfabien » 08 Sep 2017, 14:55

Hi,

You have the pulse command for that
https://www.letscontrolit.com/wiki/inde ... ort_pulses
I've used it for a remote controller, and it works quite well!
Regards

rmhoutz
Normal user
Posts: 36
Joined: 08 Sep 2017, 14:09

Re: Using Milliseconds in Rules.

#3 Post by rmhoutz » 08 Sep 2017, 16:54

bfabien wrote: 08 Sep 2017, 14:55 You have the pulse command for that
https://www.letscontrolit.com/wiki/inde ... ort_pulses
I've used it for a remote controller, and it works quite well!
:D Hi bfabien
Thank you so much, I figured it had to be something simple but I'm just getting started using ESP Easy and didn't know the pulse command was an option.
Funny enough I did see the GPIO command for simple on off and am using it on outlet switches I guess I just stopped reading that page after I figured out how to control the relay.
Thanks again you have no idea how much this helps.

TommySharp
Normal user
Posts: 19
Joined: 20 Oct 2017, 14:30

Re: Using Milliseconds in Rules.

#4 Post by TommySharp » 30 Apr 2018, 11:29

@rmhoutz

Could you share your final solution for your garage door and the momentary button press?

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

Re: Using Milliseconds in Rules.

#5 Post by grovkillen » 30 Apr 2018, 13:58

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:

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 21 guests