S20 turns off on wifi disconnect or reconnect

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
cdev
Normal user
Posts: 4
Joined: 17 May 2019, 10:20

S20 turns off on wifi disconnect or reconnect

#1 Post by cdev » 08 Jun 2019, 11:22

Hi,
Today i noticed, that if my wifi is not available (router reset) the s20 turns off...
If i turn it on (button on s20) and my wifi is up again and s20 reconnects to the wifi it switch off again.

Is it normal?
How can i chang this behavior?

User avatar
grovkillen
Normal user
Posts: 3034
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: S20 turns off on wifi disconnect or reconnect

#2 Post by grovkillen » 08 Jun 2019, 15:10

Doesn't sound normal. What version and what settings are you using?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cdev
Normal user
Posts: 4
Joined: 17 May 2019, 10:20

Re: S20 turns off on wifi disconnect or reconnect

#3 Post by cdev » 08 Jun 2019, 18:06

Grrrrr ... next problem...
either i forgot the password, or it doesnt accept the password anymore :/
I cant logon to the plug.

I tried to Bruteforce the PW, but the Plug crashes while bruteforce ... :lol:

If it helps, thats the Config i coul get without login:

Code: Select all

{"System":{
"Build":20103,
"Git Build":"mega-20190511",
"System Libraries":"ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support",
"Plugins":47,
"Plugin description":" [Normal]",
"Local Time":"2019-06-08 15:29:23",
"Unit Number":0,
"Unit Name":"ESP_Easy",
"Uptime":3,
"Last Boot Cause":"Manual reboot",
"Reset Reason":"Hardware Watchdog",
"Load":9.30,
"Load LC":4321,
"CPU Eco Mode":"false",
"Free RAM":12144
},
"WiFi":{
"Hostname":"ESP-Easy-0",
"IP Config":"DHCP",
"IP Address":"192.168.2.12",
"IP Subnet":"255.255.255.0",
"Gateway":"192.168.2.1",
"STA MAC":"XX:3A:XX:05:XX:44",
"DNS 1":"80.69.96.12",
"DNS 1":"80.69.96.12",
"SSID":"UPC7XXX86",
"BSSID":"4C:7X:BX:XX:AX:BC",
"Channel":1,
"Connected msec":147019,
"Last Disconnect Reason":202,
"Last Disconnect Reason str":"(202) Auth fail",
"Number Reconnects":0,
"Force WiFi B/G":"false",
"Restart WiFi Lost Conn":"false",
"Force WiFi No Sleep":"false",
"Periodical send Gratuitous ARP":"false",
"Connection Failure Threshold":0,
"RSSI":-51
},
"Sensors":[
{
"TaskValues": [
{"ValueNumber":1,
"Name":"State",
"NrDecimals":0,
"Value":1
}],
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":0,
"Type":"Switch input - Switch",
"TaskName":"relais",
"TaskEnabled":"true",
"TaskNumber":1
},
{
"TaskValues": [
{"ValueNumber":1,
"Name":"State",
"NrDecimals":0,
"Value":1
}],
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":0,
"Type":"Switch input - Switch",
"TaskName":"button",
"TaskEnabled":"true",
"TaskNumber":2
}
],
"TTL":60000
}

User avatar
grovkillen
Normal user
Posts: 3034
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: S20 turns off on wifi disconnect or reconnect

#4 Post by grovkillen » 08 Jun 2019, 19:40

That version should work. But you may want to try latest with core 252.

And make a rule to make sure it'll remember last state of button. I think the problem is that upon reboot the button will be "off" and that will make the relay go off. Perhaps use an internal variable which shouldn't get lost because of a reboot.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest