sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
228 stars 121 forks source link

Contact sensor status #287

Closed abdoshamma closed 1 year ago

abdoshamma commented 1 year ago

Hi I've used the contact sensor example I've connected the contact pin to gpio and I pulled it up using 100k ohm resistor However when I close the contact sensor it's working perfectly and changing the state but when I open it it do nothing It's only changing the state back if I connect the gpio pin (contact pin) to 3.3v again My question it's a hardware issue or thers something like loop to keep checking if the contact pin is high or low and update accordingly

abdoshamma commented 1 year ago

SmartSelect_20220908_031819_Samsung Internet

abdoshamma commented 1 year ago

i found its my mistake