- Reed switches
PIR sensors
relays
MQTT runs in a raspberry at the LAN. The whole project will have the 5 nodemcus with the following setup:
-1 nodemcus with 2 reed switches, PIR sensor and a relay
-2 nodemcus with 2 reed switches, PIR sensor running in battery. Since they reside in a remote place that it does not have power, but wifi's reception is strong.
-2 nodemcus with 5 reed switches running in battery. Since they reside in a remote place that it does not have power, but wifi's reception is strong.
Up to now i have connected a reedswitch to a nodemcu and it reports to the MQTT its status. I am stuck with:
-How to attach (schematics) the rest of the sensors
-Deep sleep for the battery operated nodemcus. Once the reed switch or PIR sensor is triggered, wake up, connect to wifi and then post the sensor's status to MQTT. Wait 15 minutes and then deep sleep again.