2019-03-06 13:25:26 +00:00
|
|
|
CTDoor
|
|
|
|
|
2019-03-06 13:36:00 +00:00
|
|
|
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
|
2019-03-06 13:25:26 +00:00
|
|
|
|
2019-03-06 13:33:31 +00:00
|
|
|
|
|
|
|
CTDoor can be controlled over:
|
2019-03-06 13:34:16 +00:00
|
|
|
|
2019-03-06 13:33:31 +00:00
|
|
|
/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)
|
|
|
|
|
2019-03-06 13:25:26 +00:00
|
|
|
Usage:
|
|
|
|
|
|
|
|
Connect two micro switches or reed contacts
|
|
|
|
D5 -> Lock state detection
|
|
|
|
D6 -> Door state detection
|
|
|
|
|
2019-03-06 13:37:19 +00:00
|
|
|
3rd Party Librarys/Frameworks:
|
|
|
|
|
|
|
|
Homie
|
|
|
|
OneButton
|