-
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_T1_2CH relay switches lock up #2574
Comments
here is the debug output of the issue, hope it is useful
Regards PS Sorry for the format, I tried my best, but I was not able to figure out how to do CR+LF in a quote. |
Ok, i figured out, that I have to set the INTERLOCK DELAY greater than 0 for normal operation. If this is a feature, feel free to close this issue. |
Do you mean on boot it automatically switches relay to ON without any interaction?
Certainly a bug, if it fails to unlock relays after locking them b/c of the sync mode. Maybe something like this needs to happen instead diff --git a/code/espurna/relay.cpp b/code/espurna/relay.cpp
index 48bc377e..0271d3f9 100644
--- a/code/espurna/relay.cpp
+++ b/code/espurna/relay.cpp
@@ -1681,10 +1681,10 @@ void _relaySyncUnlock() {
#endif
};
- if (all_off) {
- _relay_sync_timer.schedule(_relay_delay_interlock, action);
- } else {
+ if (!all_off || !_relay_delay_interlock.count()) {
action();
+ } else {
+ _relay_sync_timer.schedule(_relay_delay_interlock, action);
}
}
} Still prone to some timing issues, but at least locks would be disabled |
my configuration for the relays looks like this
the moment I reboot, the first switch switches on, pulses for 30 seconds and switches off, although I configured boot mode off. Then after a short while maybe about 5 seconds both switches turn grey.
Regards Timo
The text was updated successfully, but these errors were encountered: