Page 1 of 1

Can't set GPIO to LOW.

Posted: 04 Jan 2017, 21:44
by 79kiko
Can't set GPIO to LOW. After boot are all pins set to LOW but when I send any message from my Openhab
/heating/gpio/13 0
or
/heating/gpio/13 1
everytime set my board Wemos D1 on HIGH and can't set to LOW.

Where can to be problem?

Re: Can't set GPIO to LOW.

Posted: 04 Jan 2017, 22:31
by timsson

Re: Can't set GPIO to LOW.

Posted: 04 Jan 2017, 23:32
by 79kiko
When I setup in Hardware Pin Mode 13 to Default,after boot setup pin to LOW
When I setup in Hardware Pin Mode 13 to Output LOW,after boot setup pin to HIGH and same
When I setup in Hardware Pin Mode 13 to Output HIGH,after boot setup pin to HIGH

Led works fine ON/OFF.
ESPeasy version R120

All The pins do same.

Code: Select all

http://192.168.0.xxx/tools?cmd=gpio,13,0

Command output

Code: Select all

{
"log": "GPIO 13 Set to 0",
"plugin": 1,
"pin": 13,
"mode": "output",
"state": 0
}
and

Code: Select all

http://192.168.0.xxx/tools?cmd=gpio,13,1

Command output

Code: Select all

{
"log": "GPIO 13 Set to 1",
"plugin": 1,
"pin": 13,
"mode": "output",
"state": 1
}

Re: Can't set GPIO to LOW.

Posted: 04 Jan 2017, 23:47
by timsson
so you set gpio 13 low - fine :)
and now with mqtt
http://x.x.x.x/tools?cmd=Publish+/name/gpio/2,1
http://x.x.x.x/tools?cmd=Publish+/name/gpio/2,0
?
Subscribe Template: /%sysname%/#
Publish Template: /%sysname%/%tskname%/%valname%
MQTT Retain Msg: enable?

what do you see at the boker?
somethink like that
pi@HomeServerPi:~ $ mosquitto_sub -v -t /#
/ETH_01/status connected
/ETH_01/gpio/5 0
/ETH_01/gpio/6 1
/ETH_01/gpio/7 0

Re: Can't set GPIO to LOW.

Posted: 05 Jan 2017, 00:48
by 79kiko
MQTT message work fine, but only my board don't do LOW. When I send message 1 or 0, my board do only HIGH. I can't to do LOW. On software side everything looks OK.

Re: Can't set GPIO to LOW.

Posted: 06 Jan 2017, 10:41
by papperone
maybe a stupid question but... have you setup WiFi Status Led on GPIO13 on the hardware tab???
if yes than I guess that's your problem :)