Go to file
naster_mick 6f1d103c8c Update README.md 2019-03-06 14:37:19 +01:00
README.md Update README.md 2019-03-06 14:37:19 +01:00
ctdoor.ino Ctdoor 2019-03-06 01:33:45 +01:00

README.md

CTDoor

Sketch for an Wemos D1 (ESP8266) which sends the state of the door (open, closed) and lock (unlocked, locked) to:

/homie/ctdoor/frontdoor/door
/homie/ctdoor/frontdoor/lock

CTDoor can be controlled over:

/homie/ctdoor/cmd/set reboot
/homie/ctdoor/cmd/set reset (deletes homie config)
/homie/ctdoor/cmd/set ota-restart (retriggers the ota begin and sets the ota hostname)

Usage:

Connect two micro switches or reed contacts
D5 -> Lock state detection
D6  -> Door state detection

3rd Party Librarys/Frameworks:

Homie
OneButton