-
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
SWITCHES (Switch / relay configuration) #365
Comments
This could be a duplicate of #341. What board are you using? Do you have the chance to grab the debug log on boot? |
Original comment by Adrian Liviu Lungeanu (Bitbucket: icevoodoo, GitHub: Unknown): Everything I can tell you about the device is below with a link with some pictures. And I have a question, maybe i will put an issue about that. Can we have in espurna firmware in the future some thresholds for sensors (get/set) and a section where we can instruct the relay what to do if the thresholds are reached? I need this for a heating system to set it and forget it in case the device cannot reach the raspberry pi3 were i have the logic of the system... https://photos.app.goo.gl/u52m1Q964VpY7M2u1 Sonoff TH10/16 Manufacturer ITEAD |
Issue #367 was marked as a duplicate of this issue. |
Issue #375 was marked as a duplicate of this issue. |
I can't reproduce this issue but other users have reported the same. Can you please copy here the debug log of the device while booting? |
Original comment by Wacko Madman (Bitbucket: wacko_madman, GitHub: Unknown): on my Sonoff basic devices, boot mode is inverted after version 1.11.3, if set to ALWAYS ON, upon power up it briefly turns on then off, if set to ALWAYS OFF, on power up it stays ON |
Hi @wacko_madman , can you please copy here the debug log of the device booting. Specially the relay module section. It should look something like this:
On the first line it's the status mask retrieved from EEPROM. 0 means all relays OFF, 1 means relay 1 ON, 2 means relay 2 ON, 3 means relays 1 and 2 ON and so on. On the second line it check the status of the relay boot mode. Relay boot modes are defined in general.h:
So in this case relay boot mode is "Same as before" and the mask says it was OFF so the relay is set ot OFF. |
Original comment by chryss (Bitbucket: chryss, GitHub: chryss): Hi Xose, That is the boot log of 1.11.4 on Sonoff Basic
|
Thanks @chryss, but I need the log before that. The "System OK" line happens at 60 seconds after boot. Mind the module initialization happens before it gets connected to the router so you will need to have it wired to see the log. |
Original comment by chryss (Bitbucket: chryss, GitHub: chryss): Yes, i have forgotten since last time.....i'm old man :-)
|
Got it. The relay init is fine. But then I see there are two buttons defined and the second one is triggering the relay ON. This is the seconday button on the header (GPIO14) and it was introduced in the definitions not long ago. Unfortunately it looks like I made a mistake, I defined it with an internal pull-up but forgot to specify it's normal state is high. A fix for this could be changing the BUTTON2_MODE line in the hardware.h for the SONOFF_BASIC (around line 180) with this:
|
Released with 1.12.0 |
Removing milestone: 1.12.0 (automated comment) |
Seems like I am also experiencing the + naming for the relay. This breaks HASS compat. |
Originally reported by: Adrian Liviu Lungeanu (Bitbucket: icevoodoo, GitHub: Unknown)
Hi,
There is a problem with boot mode settings for the relay.
No mather what I chose, after a reboot the relay is always ON.
The firmware is espurna-1.11.3.
The text was updated successfully, but these errors were encountered: