Contact sensor reporting wrong state #2385
TheoPOZ
started this conversation in
MEPLHAA Scripts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have been struggling with this one and hope you can help.
I have setup a contact and motion sensor and it almost works.
The motion sensor works as expected in all scenarios, however the contact sensor (t5 GPIO13 only works properly (reports door is open when open and reports closed when closed) if the door is closed when the device (wemos d1 esp8266) is switched on. If the door is open when it's switched on, it reports the opposite (reports door is closed when open and reports door is open when closed)
{"c":{"io":[[[2],2],[[13],6,1,0],[[14],6,0]],"l":2},"a":[{"t":5,"b":[[13,0],[13,1]]},{"t":12,"i":2,"f1":[[14]]}]}
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions