I have tried using pulse and LongPulse, to turn on gpio 5 which the relay of a sonoff dual r2 for 15 seconds, but it will always stay high and the device stays on until I switch it off.
On Clock#Time=All,06:00 do
SendToHTTP, 192.168.1.200,8080,/json.htm?param=switchlight&type=command&idx=60&switchcmd=Set%20Level&level=100
LongPulse,5,1,15
endon
Pulse not working
Moderators: grovkillen, Stuntteam, TD-er
Re: Pulse not working
What release of ESPEasy do you have installed on your unit? (name of the .bin file please, can be found on the Info page, or in more recent releases, at the footer of each page)
/Ton (PayPal.me)
Re: Pulse not working
When you give these manual commands on the tools page to toggle the pin, does it then toggle?
This to make sure your pin isn't pulled up somehow.
Just for reference the documentation:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio
Is the pin also assigned to something else? For example mentioned in the I2C pin configuration on the Hardware tab?
Code: Select all
gpio,5,1
gpio,5,0
Just for reference the documentation:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio
Is the pin also assigned to something else? For example mentioned in the I2C pin configuration on the Hardware tab?
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: Pulse not working
I did this:TD-er wrote: ↑15 Apr 2023, 12:53 When you give these manual commands on the tools page to toggle the pin, does it then toggle?This to make sure your pin isn't pulled up somehow.Code: Select all
gpio,5,1 gpio,5,0
Just for reference the documentation:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio
Is the pin also assigned to something else? For example mentioned in the I2C pin configuration on the Hardware tab?
LongPulse,5,1,15 -> GPIO 5 was turned on
After 30 seconds I did this: gpio,5,0
GPIO 5 was turned off
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 38 guests