I am having this issue from long time.
I am using 2 relay and 2 button manual toggle relay on change of state.
SOme time relay get on and off automatically than I come to know it is happening due to restart of board. There is some error can someone please help.
I am using ground to D1 ANd ground To D2 for button.
Relay auto on off on restart of board
-
klew
- Posts: 13911
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 136 times
- Been thanked: 137 times
What SW is on this device? Your own, or something else?
Recently there was some discussion that Arduino board implementation for ESP8266 is setting all GPIO during boot, so they will be in defined state after startup. This behavior will cause clicking of relays during reset. There was solution for it, but first please share what SW do you use there.
Recently there was some discussion that Arduino board implementation for ESP8266 is setting all GPIO during boot, so they will be in defined state after startup. This behavior will cause clicking of relays during reset. There was solution for it, but first please share what SW do you use there.
Najlepsze suple dla Twojego domu 
-
psp50
- Posts: 26
- Joined: Tue Oct 26, 2021 9:57 am
Normal on/off switch.
Firmware setting is “on state change”
Firmware setting is “on state change”
You do not have the required permissions to view the files attached to this post.
-
psp50
- Posts: 26
- Joined: Tue Oct 26, 2021 9:57 am
This problem is not only with supla firmware.
I have face same problem with esphome firmware.
When esp device restart it change state some time.
Some light and fan turn on/off automatically sometimes.
I have face same problem with esphome firmware.
When esp device restart it change state some time.
Some light and fan turn on/off automatically sometimes.
-
klew
- Posts: 13911
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 136 times
- Been thanked: 137 times
Anyway, this problem is usually software related. It may be also HW related, but on ESP8266 you can preserve GPIO state during software reset of ESP.psp50 wrote: Fri Mar 25, 2022 6:27 pm This problem is not only with supla firmware.
I have face same problem with esphome firmware.
When esp device restart it change state some time.
Some light and fan turn on/off automatically sometimes.
Najlepsze suple dla Twojego domu 
-
vajera
- Posts: 7293
- Joined: Wed Oct 31, 2018 7:58 am
- Location: Biedrusko
- Has thanked: 291 times
- Been thanked: 161 times
It looks like known resetpins() issue.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
-
psp50
- Posts: 26
- Joined: Tue Oct 26, 2021 9:57 am
No it is not gpio 0 problem.
When switch is on i mean gpio pin connected with ground. I have not face this issue. But when switch is off mean gpio pin not connected to Gnd. And board restart then relay change its state.
When switch is on i mean gpio pin connected with ground. I have not face this issue. But when switch is off mean gpio pin not connected to Gnd. And board restart then relay change its state.
-
psp50
- Posts: 26
- Joined: Tue Oct 26, 2021 9:57 am
I have face same problem with esp32 and esp8266 with supla and esphome firmware.
-
Adamo28
- Posts: 223
- Joined: Sun Nov 08, 2020 2:54 pm
Maybe it is the fault of the lack of pull-up resistors?
