Homey Community Forum

ESP8266 GPIO strange behavior

God day!
Playing around with ESP8266 and found strange behaviour of Homey.
I can controll 4 GPIO outputs where i attached led for test.
In ESP8266 web esp easy configured GPIO as switch input and made simple rules like this:
on INPUT#State=1 do
gpio,5,1
endon
INPUT is connected on D0 with resistor to ground .
When i activate input LED on port 5 turns on and HOMEY shows GPIO 5 as On in devices.
After aprox 1 hour for some unknown reason HOMEY sends
HTTP: GPIO,5,0 without to do anything ???

Please help .
Bestr regards Dario