Navigation Menu

Skip to content
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 Dual R2 Button 1 #1798

Closed
cyberfly79 opened this issue Feb 5, 2018 · 4 comments
Closed

Sonoff Dual R2 Button 1 #1798

cyberfly79 opened this issue Feb 5, 2018 · 4 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@cyberfly79
Copy link

cyberfly79 commented Feb 5, 2018

Hello,

I have a Sonoff Dual R2. I would like to add 2 manual push buttons.
I set in config GPIO0 - Button 2. This works perfect. GPIO9 - ?? not already Button 1.
If I selected Switch 1, it works as long as I press it.

If set in GPIO9 - Button 2, it's Ok. Button 1 is missing.

How do I changing the config?

Thnks

@calcipher49
Copy link

calcipher49 commented Feb 5, 2018

Pin button1 is GPIO0 and pin button2 is GPIO9
But in Tasmota software, Button1 is assigned to internal Button (GPIO10).
You can use Switch1 for GPIO0, but if you need Button1, you must change assignment in sonoff_template.h

  • Find "Sonoff Dual R2" section, then line : GPIO_KEY1, // GPIO10 Button on casing
  • Replace GPIO_KEY1 By 0 (disable GPIO10) or GPIO_USER (can be changed using web interface)
  • Recompile and upload
  • Button1 is now available in web configuration interface
    Caution: internal button becomes unusable

@schrej-zz
Copy link

Hi, configuration interface does not reflect, what is stated in the comment from my point of view:
"BUTTON 0 (= GPIO0) connected to GND controls relay 1 and BUTTON 1 (= GPIO9) connected to GND controls relay 2.
So the GPIO should be marked as "Button 0" (currently "Button 1") and GPIO 9 as "Button 1" (currently empty)

@stale
Copy link

stale bot commented Jun 6, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Action - Issue left behind - Used by the BOT to call for attention label Jun 6, 2018
@stale
Copy link

stale bot commented Jun 21, 2018

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests

3 participants