-
Notifications
You must be signed in to change notification settings - Fork 636
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: Switch #1 ON on boot regardless the "Always OFF" option #1254
Comments
It worked fine for me on 1.12.5 version |
I also have a 4ch and it works fine on 13.3a |
Noticed this too. I have freshly flashed Dual R2's here, and the first boot has also the Swith #1 turn on upon boot, aswell after setting them to Boot into Off. But it seems like the relay turns off when you set it to pulse mode |
Mixed up with the #1216, cc @macobra as this is the actual R2 issue. Could this be related to button setup? espurna/code/espurna/config/hardware.h Lines 490 to 501 in e2641b9
edit: i.e should BUTTON2 (GPIO9) be BUTTON_PUSHBUTTON as BUTTON3 (GPIO10)? I am not that familiar with pin initialization requirements, but reading DebounceEvent source BUTTON_SWITCH initial reading is done without pinMode setting it INPUT_PULLUP (or INPUT at all): Core itself skips this too |
@mcspr Is this fixable? If Yes, will this be fixed? I'm planning to buy a couple of those Sonoffs for roller shutters and I just found this issue. |
My theory is I do not have Dual R2, but testing on the similar esp8285 with rfbridge: |
Same problem here. I am running ESPurna v 1.13.3 on Sonoff Dual R2. After lost power at the reboot the switch 1 is always on. When I burn the binary I did an erase before. |
I tried something. When I choose in the configuration SWITCH 1 Boot Mode: "Always ON", then it boot with the switch OFF. |
@ralias I fixed it quick and dirty by changing labels ;) |
@macobra I try again paying more attention to the boot process. When I set Switch 1 Boot Mode: "Always ON", I reboot the device, first of all it put the switch 1 on, finally it apply the configuration option "Always ON" and it power off the switch. There are a up/down state. It's not only change the label "OFF" by "ON". My previous message It's a bypass to avoid a manual intervention after a unexpected reboot. It's not the solution. |
In version 1.13.2 is working properly. |
@ralias do you mean 1.13.2 works but 1.13.3 doesn't? |
@xoseperez, exactly the 1.13.3 binary doesn't works and binary version 1.13.2 works as expected. |
FYI: The same issue, using 1.13.3, on Sonoff Bridge RF v2 hardware. It can't be fixed using "same as before", "always on" or "always off". All options send one order to every switch programmed on each Espurna boot. (I expected that "same as before" won't do any kind of order to switches on boot -¿?-). Its really difficult to handle using devices with same "on" and "off" RF code, as it can't be configured to be predictable on any situation. |
Can any one test the version in the dev branch after the DebounceEvent library update? |
I tested this at 5f288fc on the dev branch on one device and can't reproduce this, my network is being a pain or I'd have tried on a few devices. If you need more testing let me know and I'll power cycle some. |
Works for me. I just downloaded the current dev and upgraded Debounce Event Lib from 2.0.4 to 2.0.5 on my Sonoff Dual R2. Is it normal that I see the version still reported as 1.13.3 in the status tab of the web interface? |
I have just upgraded to 1.13.3a my dual sonoff R2 and when i reboot switch 1 gets ON. I have set the option boot mode as Always off
The text was updated successfully, but these errors were encountered: