controlling a switch externally by http breaks ESP ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

controlling a switch externally by http breaks ESP ?

#1 Post by kr0815 » 12 Nov 2016, 17:55

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 ?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: controlling a switch externally by http breaks ESP ?

#2 Post by costo » 13 Nov 2016, 11:54

What did you exactly connect to gpio2 ?

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

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: controlling a switch externally by http breaks ESP ?

#3 Post by kr0815 » 13 Nov 2016, 12:19

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?

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: controlling a switch externally by http breaks ESP ?

#4 Post by kr0815 » 13 Nov 2016, 13:11

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 112 guests