Page 1 of 1

controlling a switch externally by http breaks ESP ?

Posted: 12 Nov 2016, 17:55
by kr0815
I defined a switch, ussing it in rules to switch my PIR activated light only at night.
On sunrise / sunset, this switch is externally controlled by

Code: Select all

curl 192.168.178.46/control?cmd=GPIO,2,1
This works for a few weeks, then this input / output is dead
ESPEasy still answers with

Code: Select all

"log": "GPIO 2 Set to 1",
"plugin": 1,
"pin": 2,
"mode": "output",
"state": 1
But even in the webinterface in Devi´ces section, GPIO2 stays at 0

This happened with one GPIO a few weeks ago, i switched then to the next one, now also broken...

any suggestions ?

Re: controlling a switch externally by http breaks ESP ?

Posted: 13 Nov 2016, 11:54
by costo
What did you exactly connect to gpio2 ?

Outputs can get damaged if current is greater than 12mA.

Re: controlling a switch externally by http breaks ESP ?

Posted: 13 Nov 2016, 12:19
by kr0815
There is nothing connected, i only use it as a dummy device, switch it on/off externally and check in a ruie the switch state

Also pull-up is disabled in settings

Could it be there is a bug and i destroyed the pin using it as input and output the same time ?

I wonder because i saw people here doing the same with the sonoff


Maybe i should take a new ESP, Hardwire 2 GPIO and use one explicetly as input, the other as output?

Re: controlling a switch externally by http breaks ESP ?

Posted: 13 Nov 2016, 13:11
by kr0815
Accidently i found out now, if deleting / re-adding the device in Devices section, i get it back to work, so musst be some bug in ESPEasy?