Page 1 of 1

S20 turns off on wifi disconnect or reconnect

Posted: 08 Jun 2019, 11:22
by cdev
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?

Re: S20 turns off on wifi disconnect or reconnect

Posted: 08 Jun 2019, 15:10
by grovkillen
Doesn't sound normal. What version and what settings are you using?

Re: S20 turns off on wifi disconnect or reconnect

Posted: 08 Jun 2019, 18:06
by cdev
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
}

Re: S20 turns off on wifi disconnect or reconnect

Posted: 08 Jun 2019, 19:40
by grovkillen
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.