-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonoff TH gpio #123
Comments
Thanks! :) Why don't you use your presence detector sensor as a button? You can define it in hardware.h like this (GPIO14 is the digital pin in the external connector for the Sonoff TH, if I'm not wrong):
|
Original comment by Carlos (Bitbucket: cnieves1, GitHub: cnieves1): Hi Xose, However, if I'm not mistaken, a button is used to toggle the relay (tried that with the external button). Thanks again, Carlos |
You mean having one button to toggle the relay and another one to reset the pulse timer? |
Original comment by Carlos (Bitbucket: cnieves1, GitHub: cnieves1): Hi Xose, It's something like "Resettable Single Shot / Watchdog" in: So far, if I configure the hardware.h as a pushbutton, the relay is not My configure.h looks like: For the configurable time, I'm using the pulse mode. It seems that the It seems this is no supported right now. I read that v2 branch is better in I was digging the code, but it's still not clear to me how to modify it in Thanks, Carlos |
Released with 1.9.0 |
Removing milestone: 1.8.4 (automated comment) |
Originally reported by: Carlos (Bitbucket: cnieves1, GitHub: cnieves1)
Hi all,
First of all, congratulations for your great work!
I'm new to espurna, so sorry if this is is documented somewhere.
I'm trying to use a Sonoff TH with a presence detector attached to the external connector.
I would like to configure a gpio to reset the timer of the pulse mode, so it only allows to run the timer when there is no detection.
I didn't found how to add a digital gpio. How can I do that? And, when I figure it, how can I reset the timer with that input?
Thanks in advance,
Carlos
The text was updated successfully, but these errors were encountered: